Other PDF Issues

How to Set Copyright Metadata in PDF with Acrobat JavaScript

Chanuka GeekiyanageChanuka Geekiyanage Nov 5, 2026 870 views

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.

How to Set Copyright Metadata in Acrobat Action Wizard with JavaScript
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.
Before you start

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.

Solution 1Recommended

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.

1
Open Action Wizard

Launch Acrobat Pro, navigate to the 'Tools' tab, and select 'Action Wizard'.

2
Create a New Action

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.

3
Configure the Script

Uncheck the 'Prompt User' option. Click 'Specify Settings' and enter the following code: this.info.Copyright_status = "copyrighted"; this.info.Copyright = "Your Company Name";

4
Save and Run

Click 'OK', save the Action with a recognizable name, select the folder of PDFs you wish to process, and click 'Start'.

Advanced XMP Editing: If strict XMP metadata compliance is required for publishing, consult the Acrobat JavaScript API documentation for utilizing the `document.metadata` object.
WPS PDF Editor

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. 1. Open your PDF: Launch WPS Office and open the PDF file you wish to edit.
  2. 2. Access Document Properties: Click on 'Menu' in the top-left corner, navigate to 'Document Info', and select 'Properties'.
  3. 3. Update Metadata: In the Properties window, go to the 'Description' tab.
  4. 4. Save Changes: Enter your desired author, title, or copyright details into the provided fields, click 'OK', and save the document.
Easily edit standard document properties like Author, Title, and Subject without coding.Full compatibility with standard PDF metadata and Adobe file formats.Lightweight and fast PDF viewer and editor with a clean tabbed interface.Cost-effective solution for everyday PDF management and annotations.
microsoft office alternative - wps office

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.