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

How can I automate adding metadata to a PDF document?

Participant ,
Dec 11, 2021 Dec 11, 2021

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.pngexpand image

 

TOPICS
JavaScript
1.5K
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 ,
Dec 12, 2021 Dec 12, 2021

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.

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

you are great,
thanks a lot

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