How to search text in PDF in batch for checking details?

  In last article, we talk about how to change image PDF to text PDF for detail checking and searching in Adobe PDF reader. So you know that when search text in PDF reader, you only can search text one by one. If there are more than 10000 pages, there will be some ones omitted. In the following part, I will show you one method of searching text in batch for detail checking.

The software I will use named VeryPDF PDF Text Replacer Command Line, which also can help you change text in PDF. When search text in PDF, this software will tell you detail locations of all the text you searched. In the following part, I will show you how to use it.

Step 1. Download PDF Text Replacer Command Line

  • When downloading, please download the command line version as the GUI version does not have this function.
  • When downloading finishes, please use it as the other command line software. Extract it to some folder and then find executable file, help document and others related elements.

Step 2. Search text in PDF by command line.

  • When you use this software, please refer to the usage and examples. 
  • Here is the usage for your reference: pdftr.exe [options] <Input-file> <Output-file>
  • When you need to search text in PDF, please refer to the following command line templates.
    pdftr.exe -searchtext "string" C:\in.pdf
    By this command line, we can search all the "string"  in the input PDF file.
    pdftr.exe -pagerange 1 -searchtext "string" C:\in.pdf
    By this command line, we can specify searching text page range.
    Now let us check search text examples in the following snapshot.
    search text in MS Dos Windows

In the above snapshot, we can get that during searching by this software, you can find all the locations of searching keywords, and the sentence of the keyword lie in. Now let us check related parameters.
-pagerange <string>           : set page range for search keywords, e.g., 1,3-5,7,9
-searchtext <string>          : search text in PDF pages and show result to console

If you use this software together with OCR to Any Command Line Converter, you can search text in any kind of PDF files. This method also can be used under sever or developing environment even if there is no any Adobe software installed.

However, now this software only can work under Window system and it can not run under Mac or Linux system. But if you need, we can make one for you. If you need to replace text in PDF, this software also can help you make it. During the using, if you have any question, please contact us as soon as possible.

VN:F [1.9.20_1166]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: +1 (from 1 vote)
How to search text in PDF in batch for checking details?, 10.0 out of 10 based on 1 rating

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify Code   If you cannot see the CheckCode image,please refresh the page again!