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

How can I automate adding metadata to a PDF document?

Participant ,
Dec 11, 2021 Dec 11, 2021

Copy link to clipboard

Copied

Hi Good day,

There are thousands of pdf files, how can I automate adding metadata to these pdf documents?

File name  > adding it to the title and subject sections

Thanks....

21212121.png

 

TOPICS
JavaScript

Views

1.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
Community Expert ,
Dec 12, 2021 Dec 12, 2021

Copy link to clipboard

Copied

You can do it using the Action Wizard in Acrobat Pro.

Create a new Action and add to it an Execute JavaScript command with the following code:

 

this.info.Title = this.documentFileName.replace(/\.pdf$/i, "");

this.info.Subject = this.documentFileName.replace(/\.pdf$/i, "");

 

Make sure to un-tick the Prompt User box, and then add a Save command after this command, and run it on your files.

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
Participant ,
Dec 12, 2021 Dec 12, 2021

Copy link to clipboard

Copied

LATEST

you are great,
thanks a lot

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