Skip to main content
Participant
December 3, 2019
Question

AdobeDC Script Question

  • December 3, 2019
  • 1 reply
  • 197 views

Is there away to write a script that will edit a PDF that I download and change the words on two pages each time I download the PDF.  Example: on the third page of a PDF that I download each month it has the word Focus and I need to change it to X1 after downloading.  I can edit it and change it but I'm looking for a script that will change it automatically since I have about 20 changes on the document each month.

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
Community Expert
December 3, 2019

This isn't really something that can be done with scripting.  A script could find and cover the words with other text, but the space taken up by the covered word wouldn't change. Its just being covered up. 

 

However, this is something that could be done with a plug-in. There are problems with this approach as well. Text in a PDF has a fixed nature, it doesn't wrap and automatically break across pages. So simple word replacment works as long as the new word doesn't push the other text on the same line out too far. 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often