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。