Skip to main content
October 8, 2020
Answered

batch editing of metadata

  • October 8, 2020
  • 2 replies
  • 5058 views

is it possible to use the so-called "tokens" as in some other pdf programs to massively change the title in the metadata? i need to add filename to metadata title in many files.

This topic has been closed for replies.
Correct answer try67

I'm not sure what you mean by "tokens", but it is possible to change the metadata of multiple files using an Action in Acrobat Pro, yes. If you want to apply the file's name as its title you can do it using this JavaScript code:

 

this.info.Title = this.documentFileName;

2 replies

Known Participant
April 19, 2023

Hi, With Adobe Acrobat 2020, I wish to do the same as described in this tread.

 

With the script below, it's not working. Can we modify the script or does it only work with Adobe Acrobat Pro?

try67
Community Expert
Community Expert
April 19, 2023

There's no reason the code above shouldn't work in your version, but only the Pro version of Acrobat has batch processing capabilities (via the Action Wizard). So you can use it, but only on one file at a time.

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
October 9, 2020

I'm not sure what you mean by "tokens", but it is possible to change the metadata of multiple files using an Action in Acrobat Pro, yes. If you want to apply the file's name as its title you can do it using this JavaScript code:

 

this.info.Title = this.documentFileName;

October 11, 2020

Thanks for the answer, maybe you can help me? I need the title in metadata consisted of "some text"
+ file name (if possible without ".pdf").

try67
Community Expert
Community Expert
October 11, 2020

Use this:

 

this.info.Title = "some text " + this.documentFileName.replace(".pdf", "");