VeryPDF has released a new version of PDF Text Replacer Command Line software today, the new version allows you to modify PDF page contents directly. The new version can be downloaded from this web page,
The new version of pdftr.exe is able to execute the following new functions,
- Extract each page of PDF contents to a text file.
- You can modify the contents of these text files in notepad or UltraEdit-32 application.
- Combine these text files into original PDF file.
- OK, you will get a new PDF file with modification.
Please by following steps to modify text contents in a PDF file directly,
1. We will use following sample PDF file for test purpose, we will try to replace the "This is ä the first umlaut." text line,
2. Run following command line to extract PDF page contents to some text files, one text file from one page, for example, if your PDF file has 10 pages, you will get 10 text files,
pdftr.exe -exportpagecontents test-umlaut.pdf _out-pages-%04d.txt
For the first page, the text filename is "_out-pages-0001.txt", please open this text file in notepad or UltraEdit-32 application, locate "This is ?the first umlaut." string,
3. Now, we will run TextEncoding.exe application (VeryPDF Text Encoding Converter) to convert some umlaut characters to Octal characters, e.g., the Octal encoding for "äÄöÖüÜß" characters are "\344\304\366\326\374\334\337",
4. Copy and paste "\344\304\366\326\374\334\337" into _out-pages-0001.txt file, replace original "This is ä the first umlaut." text line,
5. Run following command line to insert these text files into original PDF file,
pdftr.exe -importpagecontents -contentfile _out-pages-%04d.txt test-umlaut.pdf _test-umlaut.pdf
6. OK, you will get a new PDF file with modified contents,
By above steps, you can replace any text contents in the PDF pages easily.
If you encounter any problem with above steps, please feel free to let us know, we will assist you asap,