How to Replace or Edit XMP Metadata in a PDF
Question details
The user needs to safely update or replace XMP metadata in a PDF using an exported XMP file without causing saving errors.

- Product
- PDF Editors
- Device & OS
- not provided
- Scenario
- Importing an XMP file saved from another PDF document to update the current document's metadata properties.
- Observed behavior
- The XMP file does not save or replace correctly because entire XMP packets contain unique document IDs that conflict when overwritten blindly.
Before modifying XMP data, verify what specific metadata fields need updating. Avoid overwriting the entire XMP packet blindly, as doing so can erase or corrupt the document's unique ID.
Import and Edit XMP Metadata Safely
Use the Advanced Metadata properties to import specific properties instead of completely replacing the XMP file.
Replacing an entire XMP packet blindly is a common mistake that can cause saving issues. XMP files contain a unique document-specific identifier. It is highly recommended to append or edit specific parts of the file rather than replacing it with a standard XMP file to ensure this ID remains unique.
Open your PDF file. Navigate to File > Properties, and select the Description tab.
Locate and click on the 'Additional Metadata' button to open the advanced XMP options.
Click the small black arrow or options menu located in the upper-right corner of the metadata window.
Choose the import or append option to bring in the required metadata from your saved XMP file without replacing the entire packet.

Edit Standard PDF Metadata with WPS Office
While raw XMP editing requires advanced tools, WPS Office provides a straightforward and free way to view, edit, and manage standard PDF document properties such as title, author, subject, and keywords directly from the interface.
- 1. Open your PDF in WPS: Launch WPS Office and open the target PDF file you want to edit.
- 2. Access document properties: Click on 'Menu' in the top-left corner, then select 'Document Properties' from the dropdown list.
- 3. Modify the metadata: Under the Description tab, type in your new Title, Author, Subject, and Keywords.
- 4. Save changes: Click 'OK' to confirm, then save your PDF document to apply the newly updated metadata.

Frequently Asked Questions
What is an XMP file in a PDF?
XMP (Extensible Metadata Platform) is an XML-based format used within PDFs and other files to store standard and advanced metadata, including author details, creation dates, copyright info, and unique document identifiers.
Why does my PDF metadata fail to update when importing an XMP file?
This commonly happens if you attempt to replace the entire XMP packet rather than just the specific properties. The XMP file contains a unique document ID; overwriting it with an ID from another document creates a conflict.
Can I edit basic PDF metadata without accessing the raw XMP file?
Yes, you can edit standard properties like Title, Subject, Author, and Keywords using standard PDF editors like WPS Office through the 'Document Properties' menu without needing to manipulate the raw XMP code.




