Search the full text in PDF files: Difference between revisions

Jump to navigation Jump to search
m
Text replacement - "errerrors.blogspot.tw" to "errerrors.blogspot.com"
m (Text replacement - "in Chinese" to "in Mandarin Chinese")
Tags: Mobile edit Mobile web edit
m (Text replacement - "errerrors.blogspot.tw" to "errerrors.blogspot.com")
Tags: Mobile edit Mobile web edit
 
Line 132: Line 132:
* Indexing for better performance:
* Indexing for better performance:
* Locate the keywords you type: ok
* Locate the keywords you type: ok
* Support boolean search: (1) {{kbd | key=<nowiki>OR</nowiki>}}: To matches the content contains {{kbd | key=<nowiki>TERM_A</nowiki>}} or {{kbd | key=<nowiki>TERM_A</nowiki>}} e.g. {{kbd | key=<nowiki>pdfgrep -n --max-count 10 TERM_A|TERM_B foo.pdf</nowiki>}} (2) {{kbd | key=<nowiki>AND</nowiki>}}: Add the option {{kbd | key=<nowiki>-P, --perl-regexp</nowiki>}}<ref>[https://errerrors.blogspot.tw/2018/04/resolve-pdfgrep-pcre-support-disabled.html 解決 pdfgrep 正則表示式搜尋時遇到 PCRE support disabled at compile time!]</ref>. To matches the content contains {{kbd | key=<nowiki>TERM_A</nowiki>}} and {{kbd | key=<nowiki>TERM_B</nowiki>}} e.g. {{kbd | key=<nowiki>pdfgrep -n --max-count 10 -i -P '(?=.*TERM_A)(?=.*TERM_B).*' foo.pdf</nowiki>}}
* Support boolean search: (1) {{kbd | key=<nowiki>OR</nowiki>}}: To matches the content contains {{kbd | key=<nowiki>TERM_A</nowiki>}} or {{kbd | key=<nowiki>TERM_A</nowiki>}} e.g. {{kbd | key=<nowiki>pdfgrep -n --max-count 10 TERM_A|TERM_B foo.pdf</nowiki>}} (2) {{kbd | key=<nowiki>AND</nowiki>}}: Add the option {{kbd | key=<nowiki>-P, --perl-regexp</nowiki>}}<ref>[https://errerrors.blogspot.com/2018/04/resolve-pdfgrep-pcre-support-disabled.html 解決 pdfgrep 正則表示式搜尋時遇到 PCRE support disabled at compile time!]</ref>. To matches the content contains {{kbd | key=<nowiki>TERM_A</nowiki>}} and {{kbd | key=<nowiki>TERM_B</nowiki>}} e.g. {{kbd | key=<nowiki>pdfgrep -n --max-count 10 -i -P '(?=.*TERM_A)(?=.*TERM_B).*' foo.pdf</nowiki>}}
* Comments:  
* Comments:  


Navigation menu