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

Acrobat -- adding a button or menu item to run some javascript to persist CreationDate in metadata

Explorer ,
Dec 27, 2018 Dec 27, 2018

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

TOPICS
Edit and convert PDFs

Views

2.3K

Translate

Translate

Report

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
1 ACCEPTED SOLUTION
Community Expert ,
Dec 27, 2018 Dec 27, 2018

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?

quicktool.jpg

Finger crossed.  Let me know if it works!

My best,

Dave

View solution in original post

Votes

Translate

Translate

Report

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 ,
Dec 27, 2018 Dec 27, 2018

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.

JS-3.jpg

I hope this is helpful.

My best,

Dave

Votes

Translate

Translate

Report

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
Explorer ,
Dec 27, 2018 Dec 27, 2018

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

Votes

Translate

Translate

Report

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 ,
Dec 27, 2018 Dec 27, 2018

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?

quicktool.jpg

Finger crossed.  Let me know if it works!

My best,

Dave

Votes

Translate

Translate

Report

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
Explorer ,
Dec 28, 2018 Dec 28, 2018

Copy link to clipboard

Copied

Dave,

Yeah, I've docked Actions in the Quick Tools panel before.  This will suffice.

Thanks

Chris

Votes

Translate

Translate

Report

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 ,
Dec 28, 2018 Dec 28, 2018

Copy link to clipboard

Copied

LATEST

Glad this is a usable solution!

My best,

Dave

Votes

Translate

Translate

Report

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