Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Auto update of date field

New Here ,
Jan 04, 2021 Jan 04, 2021

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? 

TOPICS
Edit and convert PDFs
7.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
2 ACCEPTED SOLUTIONS
Community Expert ,
Jan 04, 2021 Jan 04, 2021

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

 

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 05, 2021 Jan 05, 2021

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?

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 04, 2021 Jan 04, 2021

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

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 05, 2021 Jan 05, 2021

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 05, 2021 Jan 05, 2021

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 01, 2021 Jul 01, 2021

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 01, 2021 Jul 01, 2021

What script does you use? Where does you use the script?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 02, 2021 Jul 02, 2021

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.

default0bxo6986cjjc_0-1625232164804.png

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 02, 2021 Jul 02, 2021

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 02, 2021 Jul 02, 2021
LATEST

Why not place it under the document's Will Print event?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines