无法在终端中搜索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.