[ https://issues.apache.org/jira/browse/PDFBOX-3013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14951653#comment-14951653 ]
Maruan Sahyoun commented on PDFBOX-3013: ---------------------------------------- [~evgeniy.muravitskiy] I've committed a fix. Could you let me know if that resolves the issue for you? Many thanks for the report. > Incorrect accordance between attributes and properties > ------------------------------------------------------ > > Key: PDFBOX-3013 > URL: https://issues.apache.org/jira/browse/PDFBOX-3013 > Project: PDFBox > Issue Type: Bug > Components: Writing, XmpBox > Affects Versions: 2.0.0 > Reporter: Evgeniy Muravitskiy > Attachments: InfoXMP.pdf, restest.xml > > > when i write code as follows: > {code} > PDDocument document = PDDocument.load(DOCUMENT_FILE); > DomXmpParser parser = new DomXmpParser(); > XMPMetadata metadata = > parser.parse(document.getDocumentCatalog().getMetadata().getStream().getUnfilteredStream()); > metadata.removeSchema(metadata.getPDFIdentificationSchema()); > File out = new File(OUTPUT_PATH); > OutputStream res = new FileOutputStream(out); > new XmpSerializer().serialize(metadata, res, true); > {code} > I get xml with following tags hierarchy: > {code} > <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" > CreateDate="2015-03-10T17:19:21+01:00" CreatorTool="veraPDF Test Builder" > ModifyDate="2015-03-10T17:19:21+01:00" rdf:about=""> > <xmp:CreateDate>2015-03-10T17:19:21+01:00</xmp:CreateDate> > <xmp:CreatorTool>veraPDF Test Builder</xmp:CreatorTool> > <xmp:ModifyDate>2015-03-10T17:19:21+01:00</xmp:ModifyDate> > </rdf:Description> > {code} > It`s happens when some properties used in attributes. If this properties in > source file used in tags then no problems. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org