Skip to main content
Participant
January 27, 2024
Question

add metadata to pdf from external source

  • January 27, 2024
  • 1 reply
  • 496 views

Hi, I have to update around 2000 pdf files' Title and Subject.

Each file has different Title and Subject and they are stored in an excel file.

How can I automate the process?

I have Acrobat Pro installed, and just beginning to learn coding.

I googled a bit, and seems I need to use JavaScript, or maybe VBA?

Any help would be appreciated.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
January 27, 2024

Yes, this can be achieved with JS, but it's not a simple task. You would need to first convert the Excel file to a plain-text file (CSV or tab-delimited, for example), read that file using a script (you can use the readFileIntoStream method of the util object, for example), parse it into a data model, and then run an Action where you compare the name of each file that is being processed to the data model, and populate its metadata property accordingly.

Ethan SWAuthor
Participant
January 27, 2024

thanks very much for your reply @try67 , looks like the required scripts are out of my depth at the moment, will have to consider other options