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 in PDF reader, you only can 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 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.
- When downloading, please download the version as the GUI version does not have this function.
- When downloading finishes, please use it as the other software. Extract it to some folder and then find executable file, help document and others related elements.
Step 2. Search text in PDF by.
- 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.
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.