Skip to content

PDF/A-1 compliance fails due to document's Producer mismatch XMP Metadata pdf:Producer#1703

Open
andreiaugustin wants to merge 3 commits intofoliojs:masterfrom
andreiaugustin:iso19005-1-2005-c-6-7-3-t7
Open

PDF/A-1 compliance fails due to document's Producer mismatch XMP Metadata pdf:Producer#1703
andreiaugustin wants to merge 3 commits intofoliojs:masterfrom
andreiaugustin:iso19005-1-2005-c-6-7-3-t7

Conversation

@andreiaugustin
Copy link
Contributor

This PR introduces a fix for PDF/A-1 compliance failure on veraPDF due to ISO 19005-1:2005 Clause 6.7.3 Test 7, i.e.:

The value of Producer entry from the document information dictionary, if present, and its analogous XMP property "pdf:Producer" shall be equivalent

Bug fix

What kind of change does this PR introduce?

When building the XML Metadata, it used to append the Creator for <pdf:Producer> causing the following veraPDF test to fail: ISO 19005-1:2005 Clause 6.7.3 Test 7

With this change, Producer is used instead, ensuring there is no mismatch between the document dictionary's Producer and the XMP metadata <pdf:Producer> and therefore passing that test!

Checklist:

  • Unit Tests
  • Documentation N/A
  • Update CHANGELOG.md N/A
  • Ready to be merged

The value of Producer entry from the document information dictionary, if present, and its analogous XMP property "pdf:Producer" shall be equivalent
npm run prettier -- -- --write
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant