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;

Known Participant
May 26, 2021

Hello, Cool answer. It's exactly what I needed, adding file name to file info title. I tested, and it works. Thanks.

 

Elsewhere, what script could I use to fill the "Author", "Keywords", and "Subject" fields?

 

Cheers,

 

 

Known Participant
July 2, 2021

It's not doing that for me...


Apologize, yes, it works fine.