Copy link to clipboard
Copied
Dear community,
my job is to find and replace a text in several thousand PDF files. It is always the same process - the photo shows the desired change. The wording and position of the text is always the same and the files are all in one folder.
I have already tried Acrobat and the detour via Illustrator, unfortunately the action does not go through.
I hope I have provided all the necessary information and look forward to your answers or solutions.
Greetings Tina
Copy link to clipboard
Copied
Here's an article on scripting redaction:
https://acrobatusers.com/tutorials/auto_redaction_with_javascript/
This article will be helpful as well:
https://www.pdfscripting.com/public/PDF-Page-Coordinates.cfm?sd=40
Use the Acrobat JavaScript Reference early and often
Copy link to clipboard
Copied
If the text is always in the same location you can use a script to redact the old text and replace if with the new one, either as the overlay text of the redaction or by adding a text field or comment and then flattening the file.
This will require writing a custom-made script, though.
Copy link to clipboard
Copied
Many thanks first!
Copy link to clipboard
Copied
Here's an article on scripting redaction:
https://acrobatusers.com/tutorials/auto_redaction_with_javascript/
This article will be helpful as well:
https://www.pdfscripting.com/public/PDF-Page-Coordinates.cfm?sd=40
Use the Acrobat JavaScript Reference early and often
Copy link to clipboard
Copied
A final feedback on this topic: An expert creates an individual script for us, otherwise it can´t be solved.
Thanks for your advice!
Copy link to clipboard
Copied
If the Redact Search and Replace, shown by JR below, doesn't work, then contact me though messaging here, or through this website www.windjack.com
Use the Acrobat JavaScript Reference early and often
Copy link to clipboard
Copied
Acrobat Pro's Redact tools can do it easily, without programming or JavaScript.
1.
2.
3.
PDF Acrobatic, InDesigner & Photoshoptographer
Copy link to clipboard
Copied
How difficult can it be for Adobe to just Add a - replace all- button?
The interface already was a crime against humanity , but for more than 26 years not adding a "Replace All button" is damn wrong evil !
That
Copy link to clipboard
Copied
Something tells me the replace all button is not there on purpose
Copy link to clipboard
Copied
Yes, its not there on purpose, because PDF is not a content creation format. Specifically it doesn't reflow text at the block and page level (as opposed to a single line, which is will do), so any replacements have to happen within the given space.
You can argue all you want about having word or Indesign level features, but the fact is that Acrobat is not that kind of tool.
Use the Acrobat JavaScript Reference early and often

