You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Jörn Mörsch <jo...@n-design.de.INVALID> on 2021/06/24 14:40:14 UTC

Problem while parsing XMPMetadata with embedded Schemas

Hello PDFBox Community,

we have a problem parsing the *XMP* metadata of a PDF using
*xmpParser.parse(InputStream)*. The *XMP* metadata contains external
schemas, when trying to validate the data we get the error "*Cannot find
a definition for the namespace http://ns.ftx.com/forms/1.0/*".

According to the following *pages*, the *XMP metadata* should be correct:

https://www.w3.org/RDF/Validator/ <https://www.w3.org/RDF/Validator/>

https://www.pdflib.com/pdf-knowledge-base/xmp/free-xmp-validator/
<https://www.pdflib.com/pdf-knowledge-base/xmp/free-xmp-validator/>

Does anyone know what exactly the problem is? XMP metadata not correct?
Can it be a Bug in PDFBox?

Kind Regards,

Joern Moersch


Re: Problem while parsing XMPMetadata with embedded Schemas

Posted by "sahyoun@fileaffairs.de" <sa...@fileaffairs.de>.

Am Donnerstag, dem 24.06.2021 um 16:40 +0200 schrieb Jörn Mörsch:
> Hello PDFBox Community,
> 
> we have a problem parsing the *XMP* metadata of a PDF using
> *xmpParser.parse(InputStream)*. The *XMP* metadata contains external
> schemas, when trying to validate the data we get the error "*Cannot
> find
> a definition for the namespace http://ns.ftx.com/forms/1.0/*".

assuming you are using XMPBox it does not support arbritary XMP Schemas
only a predefined set which is being defeines to be usable in PDF/A.

There is an initial discussion about it's future and depending on the
outcome this restriction might be removed.

BR
Maruan
> 
> According to the following *pages*, the *XMP metadata* should be
> correct:
> 
> https://www.w3.org/RDF/Validator/ <https://www.w3.org/RDF/Validator/>
> 
> https://www.pdflib.com/pdf-knowledge-base/xmp/free-xmp-validator/
> <https://www.pdflib.com/pdf-knowledge-base/xmp/free-xmp-validator/>
> 
> Does anyone know what exactly the problem is? XMP metadata not
> correct?
> Can it be a Bug in PDFBox?
> 
> Kind Regards,
> 
> Joern Moersch
> 



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