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....
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.
Copy link to clipboard
Copied
you are great,
thanks a lot