Copy link to clipboard
Copied
I have a PDF form that contains javascripts, custom calculations, and Document Javascripts. If I open PDF, then close the file without entering any data into forms, Acrobat/Reader is prompting me to save PDF. This is not an issue.
But, in the process of duplicating the original, I made some minor changes, and then saved PDF. Newly saved PDF does not behave in the same manner. I can open dup PDF, close the file without entering any data into forms, and now I am not prompted to save. This would be the preferred manner.
Problem is, I can't replicate this behavior. What do I need to look into so PDFs will not prompt a save when no data is entered into forms? TIA
Copy link to clipboard
Copied
I discovered the problem. The PDF contains a document javascript to enter today's date when opened. When editing the form, if I did not clear the form before saving the duplicate, the date was captured as a static value. Then, if I opened and closed without entering data in form, Acrobat did not prompt a save. The date script when running correctly, will always prompt a save of the PDF.
Copy link to clipboard
Copied
I discovered the problem. The PDF contains a document javascript to enter today's date when opened. When editing the form, if I did not clear the form before saving the duplicate, the date was captured as a static value. Then, if I opened and closed without entering data in form, Acrobat did not prompt a save. The date script when running correctly, will always prompt a save of the PDF.
Copy link to clipboard
Copied
At the end of the date script add:
this.dirty = false;
Find more inspiration, events, and resources on the new Adobe Community
Explore Now