Copy link to clipboard
Copied
I need to persist the original CreationDate of PDFs. As they get moved to different directories the operating system will update the CreationDate of PDFs.
I'd like to add a button or menu item to Acrobat that a clerk could click or select that would run the following javascript:
this.info.Author = this.info.CreationDate;
This would persist the CreationDate in the Author field. We always be able to determine the original creation date of the document no matter how many times it gets moved and the OS updates the CreationDate field.
Essentially, I'm looking for a way to build an application-level button or menu item that can run this simple script. The button/menu item should become active as soon as a document is loaded/opened.
Thanks for any guidance.
Christian Bahnsen
Copy link to clipboard
Copied
Chris,
It looks as if you can add an Action to your Quick Tools by clicking on the tiny button as shown below. I wonder if you were to create your custom script action, save it, and see if it can be added in this way?
Finger crossed. Let me know if it works!
My best,
Dave
Copy link to clipboard
Copied
Would a custom Action work for you? You can go to the Actions toolset and click on the New Action button, and then select Execute Javascript from the More Tools group.
I hope this is helpful.
My best,
Dave
Copy link to clipboard
Copied
Dave,
Yes, I've used Actions before and that would probably be the route to go if I can't add a button or menu item to do it.
Thanks for the suggestion. If the button/menu item route doesn't pan out, I'll mark this as the correct answer.
Chris
Copy link to clipboard
Copied
Chris,
It looks as if you can add an Action to your Quick Tools by clicking on the tiny button as shown below. I wonder if you were to create your custom script action, save it, and see if it can be added in this way?
Finger crossed. Let me know if it works!
My best,
Dave
Copy link to clipboard
Copied
Dave,
Yeah, I've docked Actions in the Quick Tools panel before. This will suffice.
Thanks
Chris
Copy link to clipboard
Copied
Glad this is a usable solution!
My best,
Dave