How to replace short sentence in PDF file by pdftr.exe application?

VeryPDF has released a new version of PDF Text Replacer Command Line software today, the new version works better to replace sub-string in a long text string in PDF file, the new version of pdftr.exe can be downloaded from below URL,

https://www.verypdf.com/dl2.php/pdftextreplacer_cmd.zip

after you download and unzip it to a folder, you can use following command lines to replace dates in your PDF file easily, because the old date may appear in some long text strings, so the new version of pdftr.exe will replace these old date in long text strings directly,

pdftr.exe -wordbywordfrompdf 0 -replacesubstrings 1 -overlaytextfontname "Times New Roman" -overlaybgcolor FF0000 -overlaytextfontsize 10 -overlaybg-y-offset 4 -overlaybgheight 18 -searchandoverlaytext "August 19, 2022=>September 9, 2022" test-modify-dates.pdf _out_test-modify-dates.pdf

OR

pdftr.exe -wordbywordfrompdf 0 -replacesubstrings 0 -overlaytextfontname "Times New Roman" -overlaybgcolor FF0000 -overlaytextfontsize 10 -overlaybg-y-offset 4 -overlaybgheight 18 -searchandoverlaytext "August 19, 2022=>September 9, 2022" test-modify-dates.pdf _out_test-modify-dates.pdf

"-replacesubstrings 1" will replace entire text line which contain old text.

"-replacesubstrings 0" will replace old text only in a long string, it doesn't affect other words in this long string.

This is a screenshot of "-replacesubstrings 1", as you see, the entire text file has been replaced,

image

This is a screenshot of "-replacesubstrings 0", as you see, only the old text was replaced, the other words were kept same, same font, same color, etc.

image

So, if you want to replace text in a PDF file from command line or automatically, PDF Text Replacer Command Line software is a good choice for you, you may download and try it now.

https://www.verypdf.com/app/pdf-text-replacer/try-and-buy.html#buy-cmd

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

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!