How to Set Copyright Metadata in PDF with Acrobat JavaScript
Question details
The user wants to batch-process PDF files to update copyright metadata, such as copyright status and notices, using JavaScript in Acrobat Action Wizard.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Applying standard or custom copyright metadata to multiple PDFs simultaneously via an automated script.
- Observed behavior
- Requires the exact JavaScript code and method to inject custom XMP copyright fields or simpler custom document properties.
Ensure you have tested your script on a copy of a single PDF file to verify the metadata updates correctly before running a batch process on multiple files.
Use Custom JavaScript in Acrobat Action Wizard
Add a custom JavaScript execution step to your Acrobat Action to easily apply custom copyright metadata fields across multiple PDFs.
Manipulating standard XMP metadata requires XML and XDP knowledge using the document.metadata object. However, a simpler approach is to inject custom metadata properties directly into the document info dictionary using standard Acrobat JavaScript.
Launch Acrobat Pro, navigate to the 'Tools' tab, and select 'Action Wizard'.
Click 'New Action' from the top toolbar. Under 'More Tools' on the left panel, select 'Execute JavaScript' and click the '+' icon to add it to your action steps.
Uncheck the 'Prompt User' option. Click 'Specify Settings' and enter the following code: this.info.Copyright_status = "copyrighted"; this.info.Copyright = "Your Company Name";
Click 'OK', save the Action with a recognizable name, select the folder of PDFs you wish to process, and click 'Start'.
Edit PDF Document Properties Easily with WPS Office
While Acrobat requires scripting for automated batch processes, WPS Office offers a highly intuitive, user-friendly interface to quickly view and edit individual PDF document properties—ensuring your files are properly attributed without writing a single line of code.
- 1. Open your PDF: Launch WPS Office and open the PDF file you wish to edit.
- 2. Access Document Properties: Click on 'Menu' in the top-left corner, navigate to 'Document Info', and select 'Properties'.
- 3. Update Metadata: In the Properties window, go to the 'Description' tab.
- 4. Save Changes: Enter your desired author, title, or copyright details into the provided fields, click 'OK', and save the document.

Frequently Asked Questions
Can I use Action Wizard in the free Adobe Reader?
No, Action Wizard and batch processing via JavaScript are exclusive features of the premium Adobe Acrobat Pro software.
What is the difference between custom metadata and XMP metadata?
Custom metadata adds simple key-value pairs directly to the document info dictionary (such as this.info.Copyright), whereas XMP metadata embeds standardized, XML-based metadata that is universally recognized by advanced publishing systems.
How do I test my JavaScript before running a batch process?
You can test your script on a single PDF by opening the JavaScript Console (Ctrl+J on Windows or Cmd+J on Mac in Acrobat), pasting your code, and running it to see if the document properties update correctly.
Does WPS Office support batch processing of PDF metadata?
WPS Office is designed for straightforward manual editing of document properties for individual files. For automated batch-processing using custom JavaScript scripts, specialized automation software like Acrobat Pro is required.




