Hi,
I want a command line tool that will search a PDF for text and let me know if that text exists. This tool does that, right?
What if the text is an image? Can it search using OCR?
Please let me know. Thanks.
Customer
---------------------------------------------
>>I want a command line tool that will search a PDF for text and let me know if that text exists. This tool does that, right?
Yes, you can use "-searchtext" option to check if that text exist in PDF file or not, please look at following web page for more information,
"VeryPDF PDF Text Replacer Command Line (pdftr.exe)" can be downloaded from following web page,
https://www.verypdf.com/app/pdf-text-replacer/try-and-buy.html#buy-cmd
https://www.verypdf.com/dl2.php/pdftextreplacer_cmd.zip
after you download and unzip it to a folder, you can run following command line to search text in the PDF file,
X:\>pdftr.exe -searchtext "PDF Editor" verypdf.pdf
===== Search keyword in page 1 =====
[16.16, 283.87, 63.47, 294.89] 'PDF Editor'
[471.69, 378.41, 507.77, 387.59] 'PDF Editor OCX Control (ActiveX)'
===== Search keyword in page 2 =====
[93.80, 5.35, 128.13, 14.60] 'PDF Tools, PDF Converter, PDF Editor, PDF Creator,
PDF Printing Assistant'
[222.66, 688.15, 277.80, 700.86] 'PDF Editor'
[222.66, 703.87, 258.74, 713.06] 'PDF Editor is a powerful PDF application. It is a useful PDF editor that can edit'
>>What if the text is an image? Can it search using OCR?
Sorry, PDF Text Replacer is not support OCR, if your PDF file is contain images, you need use our "PDF to Text OCR Converter Command Line" software,
https://www.verypdf.com/app/pdf-to-text-ocr-converter/try-and-buy.html
You can use "PDF to Text OCR Converter Command Line" to convert scanned PDF files to text files, then you can search in text files easily.