How to replace text in PDF file by PDF Text Replacer Command Line application?

I am trying your plugin and it does not work.

The attached pdf i tried replacing the word "Big Tables" with "Small Tables" and that didn't work.

image

But what I really want to do is find all the prices and replace them with either a white out image or just xxx.. basically i want the pricing to be not visible to people. Can your plugin do that?

Customer
--------------------------------------

You can use PDF Text Replacer Command Line Standalone Version to replace the word "Big Tables" with "Small Tables" in your PDF file, PDF Text Replacer Command Line Standalone Version can be downloaded from following web page,

https://www.verypdf.com/app/pdf-text-replacer/search-and-replace-pdf-text-command-line.html

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 replace the word "Big Tables" with "Small Tables" in your PDF file,

pdftr.exe -contentreplace "Big Tables=>Small tables" D:\downloads\price_test.pdf D:\downloads\price_test_out.pdf

image

X:\>pdftr.exe -contentreplace "Big Tables=>Small tables" D:\downloads\price_test.pdf D:\downloads\price_test_out.pdf
[INFO] Trial version has some restrictions, please purchase full version to remove the restrictions.
[Waning] The Gen Numer of obj 1 is 0, we will reset it to 0
[INFO] 'D:\downloads\price_test.pdf' file is 'NOT Encrypted'.
[Waning] The Gen Numer of obj 1 is 0, we will reset it to 0
[ReplaceText] Big Tables=>Small tables
[ContentParserExport] Processing page 1 of 10...
[Found and Replaced] 'Big Tables'=>'Small tables'
[ContentParserExport] Processing page 2 of 10...
[Found and Replaced] 'Big Tables with Trough'=>'Small tables with Trou
gh'
[Found and Replaced] 'Big Tables with Trough'=>'Small tables with Trou
gh'
[ContentParserExport] Processing page 3 of 10...
[ContentParserExport] Processing page 4 of 10...
[Found and Replaced] '鈥?Big Tables
                                           '=>'鈥?Small tables

'
[Found and Replaced] '鈥?Big Tables with trough
                                    '=>'鈥?Small tables with trough
                                                        '
[ContentParserExport] Processing page 5 of 10...
[ContentParserExport] Processing page 6 of 10...
[ContentParserExport] Processing page 7 of 10...
[ContentParserExport] Processing page 8 of 10...
[ContentParserExport] Processing page 9 of 10...
[ContentParserExport] Processing page 10 of 10...
[INFO] Write to 'D:\downloads\price_test_out.pdf' file.

Please open output PDF file, you will see the word "Big Tables" has been replaced with "Small Tables" in output PDF file, good job,

image

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!