[ 
https://issues.apache.org/jira/browse/PDFBOX-5525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17617146#comment-17617146
 ] 

Tilman Hausherr commented on PDFBOX-5525:
-----------------------------------------

Preflight now fails with "7.5 : Error on MetaData, Missing 
pdfaSchema:namespaceURI in type definition"

I don't know what's wrong with the XMP, but VeraPDF also fails the PDF/A check 
for similar reasons, so the fix is probably good 😂
{quote}The Schema type is an XMP structure containing the definition of an 
extension schema. The field namespace URI is 
"http://www.aiim.org/pdfa/ns/schema#";. The required field namespace prefix is 
pdfaSchema. The Schema type includes the following fields: pdfaSchema:schema 
(Text), pdfaSchema:namespaceURI (URI), pdfaSchema:prefix (Text), 
pdfaSchema:property (Seq Property), pdfaSchema:valueType (Seq ValueType).

Properties specified in XMP form shall use either the predefined schemas 
defined in XMP Specification, or extension schemas that comply with XMP 
Specification
{quote}

> Null pointer exception in PDFASchemaType.getNamespaceURI()
> ----------------------------------------------------------
>
>                 Key: PDFBOX-5525
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5525
>             Project: PDFBox
>          Issue Type: Bug
>          Components: XmpBox
>    Affects Versions: 2.0.27, 3.0.0 PDFBox
>            Reporter: Christoph
>            Assignee: Tilman Hausherr
>            Priority: Major
>             Fix For: 2.0.28, 3.0.0 PDFBox
>
>         Attachments: PDFBOX-5525-xmp.xml
>
>
> Importing the following PDF given an NPE:
> This was originally reported to JabRef's repo, where we use version 3.0.0-RC1 
> [https://www.dropbox.com/s/0vtyhir0303pbuy/oe-30-4-5916.pdf?dl=0] 
> {{ERROR: Error importing: java.lang.NullPointerException: Cannot invoke 
> "String.trim()" because the return value of 
> "org.apache.xmpbox.type.PDFASchemaType.getNamespaceURI()" is null}}
> {{    at 
> [email protected]/org.apache.xmpbox.xml.PdfaExtensionHelper.populatePDFASchemaType(PdfaExtensionHelper.java:126)}}
> {{    at 
> [email protected]/org.apache.xmpbox.xml.PdfaExtensionHelper.populateSchemaMapping(PdfaExtensionHelper.java:116)}}
> {{    at 
> [email protected]/org.apache.xmpbox.xml.DomXmpParser.parse(DomXmpParser.java:197)}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to