Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-3882

False negative on PDFA-1b validation : missing field type

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.7
    • Fix Version/s: None
    • Component/s: XmpBox
    • Labels:
      None

      Description

      The preflight validation of the file ticket-0028422.pdf reports it as invalid whereas it is valid according to https://www.pdf-online.com/osa/validate.aspx.

      Calling parse with parameter Format.PDF_A1B, I get a single org.apache.pdfbox.preflight.ValidationReport$ValidationError with :
      details : Error on MetaData, Missing field in type definition
      errorCode : 7.5
      isWarning : false
      pageNumber : null
      cause :
      org.apache.xmpbox.xml.XmpParsingException: Missing field in type definition
      at org.apache.xmpbox.xml.PdfaExtensionHelper.populatePDFAType(PdfaExtensionHelper.java:210)
      at org.apache.xmpbox.xml.PdfaExtensionHelper.populatePDFASchemaType(PdfaExtensionHelper.java:145)
      at org.apache.xmpbox.xml.PdfaExtensionHelper.populateSchemaMapping(PdfaExtensionHelper.java:116)
      at org.apache.xmpbox.xml.DomXmpParser.parse(DomXmpParser.java:200)
      at org.apache.pdfbox.preflight.process.MetadataValidationProcess.validate(MetadataValidationProcess.java:69)
      at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:84)
      at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:122)
      at org.apache.pdfbox.preflight.PreflightDocument.validate(PreflightDocument.java:163)
      [...]

        Attachments

        1. ticket-0028422-better.pdf
          229 kB
          Tilman Hausherr
        2. ticket-0028422.pdf
          229 kB
          Antoine Ribes

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ari-cdc Antoine Ribes
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: