PDF Editing Issues

How to Replace or Edit XMP Metadata in a PDF

Emma BrownEmma Brown Nov 5, 2026 870 views

Question details

The user needs to safely update or replace XMP metadata in a PDF using an exported XMP file without causing saving errors.

How to Replace or Edit XMP Metadata in a PDF
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 you start

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.

Solution 1Recommended

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.

1
Open document properties

Open your PDF file. Navigate to File > Properties, and select the Description tab.

2
Access additional metadata

Locate and click on the 'Additional Metadata' button to open the advanced XMP options.

3
Open the metadata menu

Click the small black arrow or options menu located in the upper-right corner of the metadata window.

4
Import specific properties

Choose the import or append option to bring in the required metadata from your saved XMP file without replacing the entire packet.

Import and Edit XMP Metadata Safely
Preserve Document IDs: Always remember to copy only the required metadata properties. Do not replace the entire file, as the unique document ID must remain intact for the PDF to function correctly.
Easily Edit PDF Properties

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. 1. Open your PDF in WPS: Launch WPS Office and open the target PDF file you want to edit.
  2. 2. Access document properties: Click on 'Menu' in the top-left corner, then select 'Document Properties' from the dropdown list.
  3. 3. Modify the metadata: Under the Description tab, type in your new Title, Author, Subject, and Keywords.
  4. 4. Save changes: Click 'OK' to confirm, then save your PDF document to apply the newly updated metadata.
Easily edit basic PDF metadata without touching raw XMP codeFully compatible with standard PDF document properties and formatsLightweight, fast, and secure PDF reading and editing experienceFree alternative to heavy and expensive PDF software suites
microsoft office alternative - wps office

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.