Hi,

Something went wrong here, try posting this again in a different way.

Tilman

On 17.03.2023 09:43, Dusan Janis wrote:
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style></head><body dir="ltr"><div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr"><p><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></p><div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, &quot;EmojiFont&quot;, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols;" dir="ltr"><p>Hi,<br></p><p>I am using XMPBox (and PdfBox) in version 2.0.24. I tried the version 2.0.27 as well. I am trying to parse XMPMetadata from a PDDocument using a DomXmpParser. I get an XmpParsingException for the element&nbsp;&lt;dc:language&gt;x-unknown&lt;/dc:language&gt;.&nbsp;<span>The metadata is shown below as is the exception. </span> The class representing the dc namespace DublinCoreSchema specifies that a Bag 
is expected instead of a text value. A Bag element is indeed correct, but according to the specification of Dublin Core, a text value is correct as well. Is it a bug or is there any way around it?<br></p><div><br></div><div>Metadata:<br></div>&lt;?xpacket begin="�" id="W5M0MpCehiHzreSzNTczkc9d"?&gt;<br>&nbsp; &lt;x:xmpmeta xmlns:x="adobe:ns:meta/"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rdf:Description xmlns:dc="http://purl.org/dc/elements/1.1/"; rdf:about=""&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dc:format&gt;application/pdf&lt;/dc:format&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dc:language&gt;x-unknown&lt;/dc:language&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dc:date&gt;2023-03-16T10:57:48+01:00&lt;/dc:date&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/rdf:Description&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rdf:Description 
xmlns:pdf="http://ns.adobe.com/pdf/1.3/"; rdf:about=""&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;pdf:Producer&gt;Apache FOP Version 2.7&lt;/pdf:Producer&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;pdf:PDFVersion&gt;1.4&lt;/pdf:PDFVersion&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/rdf:Description&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/"; rdf:about=""&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xmp:CreatorTool&gt;Apache FOP Version 2.7&lt;/xmp:CreatorTool&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xmp:MetadataDate&gt;2023-03-16T10:57:48+01:00&lt;/xmp:MetadataDate&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xmp:CreateDate&gt;2023-03-16T10:57:48+01:00&lt;/xmp:CreateDate&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/rdf:Description&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/rdf:RDF&gt;<br>&nbsp; &lt;/x:xmpmeta&gt;<br><p>&lt;?xpacket 
end="r"?&gt;</p><p><br></p><p>Exception:</p><p><span>org.apache.xmpbox.xml.XmpParsingException: Invalid array definition, expecting Bag and found com.sun.org.apache.xerces.internal.dom.DeferredTextImpl [prefix=dc; name=language]</span><br></p><p><br></p><p>Thank you in advance,</p><p>Dušan<br></p><br></div><p></p></div></body></html>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org


Reply via email to