Copy link to clipboard
Copied
Our old document control system quick working and need some help. It would automatically print a statement and date at the bottom of every page when printed. The documents are created in word but we create a PDF copy so changes can't be made without authorization. I can create a field in word but it doesn't update when converted to PDF. How do I get the date field to automatically update in the PDF?
Copy link to clipboard
Copied
You would need to create a field in the PDF file, and then apply a script to the document's Will Print event to populate it.
I described how to do that earlier today in this thread: https://community.adobe.com/t5/acrobat/add-user-name-on-pdf-when-print/td-p/11724775
Copy link to clipboard
Copied
Thanks for the feedback but 1 quick question. If I have a document with 12 pages, for instance, if I wanted this date printed on each page (like our old system), would I need to create this on each page individually?
Copy link to clipboard
Copied
You would need to create a field in the PDF file, and then apply a script to the document's Will Print event to populate it.
I described how to do that earlier today in this thread: https://community.adobe.com/t5/acrobat/add-user-name-on-pdf-when-print/td-p/11724775
Copy link to clipboard
Copied
Thanks for the feedback but 1 quick question. If I have a document with 12 pages, for instance, if I wanted this date printed on each page (like our old system), would I need to create this on each page individually?
Copy link to clipboard
Copied
You can create the field on one page and then duplicate it to the rest, by right-clicking it (in Prepare Form mode) and selecting Duplicate Across Pages.
Copy link to clipboard
Copied
Hi. I've applied a JavaScript date field to populate the current date when my PDF is opened by someone from SharePoint. It works as expected when the document is not protected. I tried applying protection to restrict editing, with completion of fields allowed. I thought that would allow the date field script to run and update itself. However, the auto date field doesn't seem to update if the document is protected. Any suggestions for how to fix this? I really need the protection to prevent editing. Thanks for your help.
Copy link to clipboard
Copied
What script does you use? Where does you use the script?
Copy link to clipboard
Copied
Thank you for the response. The script is applied in the Page Properties, duplicated on every page. It works perfectly if the password protection is not enabled.
Copy link to clipboard
Copied
For additional clarification, it only seems to not work when an end user opens the file from SharePoint. If I save the file locally and open it on my desktop the script runs as expected even when security is enabled.
Copy link to clipboard
Copied
Why not place it under the document's Will Print event?
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more