Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-3006

[PATCH] XMP Metadata in created PDF/A-2 documents is not valid

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6, 2.7
    • 2.7
    • None
    • None

    Description

      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

      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.

      Attachments

        1. patch-FOP-3006.diff
          3 kB
          J Frank
        2. test.fo
          0.8 kB
          J Frank
        3. fop1.xconf
          0.4 kB
          J Frank
        4. test.fo
          0.5 kB
          Stefan Berger
        5. fop.xconf
          0.9 kB
          Stefan Berger
        6. veraPDF-tempHTMLReport4387586169468085905.html
          21 kB
          Stefan Berger
        7. fop_invalid_metadata.pdf
          205 kB
          Stefan Berger

        Activity

          People

            jagruti.frank@gmail.com J Frank
            bergers Stefan Berger
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: