您如何在pdf文件中搜索特定文本 [英] How do you search for a certain text across pdf files

查看:117
本文介绍了您如何在pdf文件中搜索特定文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么样的工具可用于在PDF文件中进行搜索. (例如代数)

What kind of a tools can be used for searching across PDF files. (e.g. Algebra)

我们需要在Windows平台上搜索文件.

We need to search on files in the Windows platform.

推荐答案

指定操作系统和打算执行的搜索类型(单词,精确短语,PDF元数据?)可能会有所帮助.某些内置搜索系统(例如OS X的Spotlight)会在您帐户中的所有PDF文件中自动搜索多个单词.

It may be helpful to specify your operating system and the types of searches that you intend to perform (words, exact phrases, PDF metadata?). Some built-in search systems like OS X's Spotlight will automatically search for multiple words across all PDF files in your account.

在Linux上,我可能会使用'pdftotext'实用工具将PDF文件临时转换为ASCII,然后使用'grep'搜索每个文件:

On Linux, I would probably temporarily convert PDF files to ASCII with 'pdftotext' utility and then search through each one with 'grep':

find /start/path -name '*.pdf' -print \
-exec pdftotext {} /tmp/tmp.txt \; \
-exec grep -i "search words" /tmp/tmp.txt \;

这篇关于您如何在pdf文件中搜索特定文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆