pdfgrep
1.0.0
PDFGREP是在PDF文件中搜索文本的工具。它与Grep类似。
-r , -i , -n或-c )。有关完整的文档,请咨询Manpage。
$ pdfgrep --max-count 1 --context 1 --with-filename --page-number pattern rabin-karp.pdf
rabin-karp.pdf-1-randomized
rabin-karp.pdf:1:pattern-matching
rabin-karp.pdf-1-algorithms
要构建pdfgrep ,请使用标准过程:
./configure
make
sudo make install
如果您使用的是git版本,则还必须提前运行./autogen.sh 。
根据您的操作系统,您需要为所有依赖项安装-dev或-devel软件包。
./configure脚本可以采取很多选择来自定义构建过程,其中最重要的是:
--with-unac :借助实验性的libunac支持,并将--unac标志添加到pdfgrep中,从而从字符中剥离所有口音,从而通过搜索'a'来找到字符“ä”。--with-{zsh,bash}-completion :配置Shell完成文件的安装目录。--without-libpcre :禁用对Perl兼容正则表达式的支持。--disable-doc :禁用manpage生成。要卸载,请运行sudo make uninstall 。
有关更多信息,请参见configure --help或在源中阅读(非常广泛的) INSTALL文件。
可以在https://pdfgrep.org/download.html上获得释放的Tarballs。
开发版本可作为git存储库获得,网址为https://gitlab.com/pdfgrep/pdfgrep
一般问题,建议,错误报告,补丁或其他任何内容都可以发送到邮件列表。
您也可以将问题跟踪器用于错误报告,或者在GitLab上创建合并请求,如果您希望该请求而不是MailingLists。