Evgeniy Muravitskiy created PDFBOX-3013:
-------------------------------------------

             Summary: 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


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to