You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2017/07/29 06:16:00 UTC

[jira] [Updated] (PDFBOX-3882) False negative on PDFA-1b validation : missing field type

     [ https://issues.apache.org/jira/browse/PDFBOX-3882?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr updated PDFBOX-3882:
------------------------------------
    Attachment: ticket-0028422-better.pdf

This one is better, it validates with preflight but still not with veraPDF. I made two changes, one of them is this:
{code}
<rdf:li rdf:parseType="Resource" pdfaProperty:name="PageInfo" pdfaProperty:valueType="seq PageInfo" pdfaProperty:category="internal" pdfaProperty:description="page information"/>
{code}
to
{code}
<rdf:li rdf:parseType="Resource">
  <pdfaProperty:name>PageInfo</pdfaProperty:name>
  <pdfaProperty:valueType>seq PageInfo</pdfaProperty:valueType>
  <pdfaProperty:category>internal</pdfaProperty:category>
  <pdfaProperty:description>page information</pdfaProperty:description>
</rdf:li> 
{code}
I'm not using xml much in daily life, so I can't tell if it is an error or not.

> False negative on PDFA-1b validation : missing field type
> ---------------------------------------------------------
>
>                 Key: PDFBOX-3882
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3882
>             Project: PDFBox
>          Issue Type: Bug
>          Components: XmpBox
>    Affects Versions: 2.0.7
>            Reporter: Antoine Ribes
>         Attachments: ticket-0028422-better.pdf, ticket-0028422.pdf
>
>
> 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)
> 	[...]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org