PDF/A error: XMP metadata does not match the document information dictionary
When title, author or dates differ between XMP and the Info dictionary, PDF/A fails. How to reconcile them.
The XMP metadata and the Info dictionary disagree on a property they both describe. Regenerate one from the other so both carry the same values.
ISO 19005-1 clause 6.7 · Metadata
What causes it
- A tool updated the Info dictionary without regenerating the XMP.
- Two tools in a pipeline each wrote one of them.
- Dates use a different timezone or precision in each place.
How to fix it
- Regenerate the XMP from the document properties as the last pipeline step.
- Convert the document. gopdfrab writes consistent metadata, including the PDF/A identifier.
- If you write metadata yourself, write both from one source.
Or drop the file into the converter, which fixes what it can in your browser.
FAQ
Why does a PDF store metadata twice?
The Info dictionary is the original mechanism, XMP the newer one. PDF/A allows both but they must agree.
Does the PDF/A identifier live in XMP?
Yes. A file without it doesn't claim conformance at all.