无法在终端中搜索pdf文件的内容 [英] Unable to search pdf-files' contents in terminal
本文介绍了无法在终端中搜索pdf文件的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有pdf文件,这些内容我没有通过任何终端程序进行搜索. 我只能通过Acrobat Reader和Skim搜索它们.
I have pdf -files which contents I have not managed to search by any terminal program. I can only search them by Acrobat Reader and Skim.
如何在终端中搜索pdf文件的内容?
似乎更好的问题是
如何在Acrobat Reader和Skim等pdf查看器中进行搜索?
也许,如果没有这样的工具,我就需要制作这样的搜索工具.
Perhaps, I need to make such a search tool if no such tools exist.
推荐答案
尝试从以下位置安装 xpdf MacPorts ;它应该带有一个名为 pdftotext 的工具,该工具应允许您使用grep进行搜索.
Try installing xpdf from MacPorts; it is supposed to come with a tool called pdftotext which should then allow you to search using grep.
这篇关于无法在终端中搜索pdf文件的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文