You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "J Frank (Jira)" <ji...@apache.org> on 2021/10/08 12:45:00 UTC
[jira] [Commented] (FOP-3006) XMP Metadata in created PDF/A-2
documents is not valid
[ https://issues.apache.org/jira/browse/FOP-3006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17426161#comment-17426161 ]
J Frank commented on FOP-3006:
------------------------------
Steps to verify
Use attached conf [^fop1.xconf] and test.fo [^test.fo]
Generate output using command line fop test.fo -c fop1.xconf output.pdf
Use https://demo.verapdf.org/ to verify
it should not fail for below clause
Specification: ISO 19005-2:2011, Clause: 6.6.2.3, Test number: 7
"All properties specified in XMP form shall use either the predefined schemas defined in the XMP Specification, ISO 19005-1 or this part of ISO 19005, or any extension schemas that comply with 6.6.2.3.2. Failed
2 occurrences Hide
XMPProperty
(isPredefinedInXMP2005 == true || isDefinedInMainPackage == true || isDefinedInCurrentPackage == true) && isValueTypeCorrect == true
root/document[0]/metadata[0](6 0 obj PDMetadata)/XMPPackage[0]/Properties[1](http://purl.org/dc/elements/1.1/ - dc:language)
root/document[0]/metadata[0](6 0 obj PDMetadata)/XMPPackage[0]/Properties[2](http://purl.org/dc/elements/1.1/ - dc:date)"
> XMP Metadata in created PDF/A-2 documents is not valid
> ------------------------------------------------------
>
> Key: FOP-3006
> URL: https://issues.apache.org/jira/browse/FOP-3006
> Project: FOP
> Issue Type: Bug
> Affects Versions: 2.6, trunk
> Reporter: Stefan Berger
> Priority: Major
> Attachments: fop.xconf, fop.xconf, fop1.xconf, fop_invalid_metadata.pdf, test.fo, test.fo, veraPDF-tempHTMLReport4387586169468085905.html
>
>
> When you set the "pdf-a-mode" to "PDF/A-2a" and generate a PDF, it will not pass the validation because <dc:language> and <dc:date> are not valid.
> In the case of <dc:language>, it should contain a <rdf:Bag>, and <dc:date> should contain a <rdf:Seq>.
> The offending code is this one: [https://github.com/apache/xmlgraphics-fop/blob/trunk/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149|https://github.com/apache/xmlgraphics-fop/blob/678d6c0e04fd6a5464012be0241bb771cf9bb506/fop-core/src/main/java/org/apache/fop/pdf/PDFMetadata.java#L149]
> By setting compact to true, Bags and Sequences are not created.
> Attached you will find a PDF/A-2a file generated by Apache FOP and VeraPDF's validation results. Other validators also report the same error.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)