Description
When i write code as follows:
PDDocument document = PDDocument.load(new File(FILE_PATH)); DomXmpParser parser = new DomXmpParser(); XMPMetadata metadata = parser.parse(document.getDocumentCatalog().getMetadata().getStream().getUnfilteredStream()); metadata.removeSchema(metadata.getPDFIdentificationSchema()); OutputStream res = new FileOutputStream(RESULT_XML); new XmpSerializer().serialize(metadata, res, true);
I got xml which contain following tag:
<dc:creator> <rdf:Seq> <rdf:creator>Tomioka, Satoshi</rdf:creator> </rdf:Seq> </dc:creator>
but instead of rdf:creator must be rdf:li. This problem reproducible also for others DublinCoreShema properties which contains lists.