You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maruan Sahyoun (JIRA)" <ji...@apache.org> on 2014/11/06 09:08:34 UTC

[jira] [Reopened] (PDFBOX-2378) XMPBox removes namespaces on serialization

     [ https://issues.apache.org/jira/browse/PDFBOX-2378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maruan Sahyoun reopened PDFBOX-2378:
------------------------------------

XmpBox ist still active - jempbox has been removed!

> XMPBox removes namespaces on serialization
> ------------------------------------------
>
>                 Key: PDFBOX-2378
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2378
>             Project: PDFBox
>          Issue Type: Bug
>          Components: XmpBox
>    Affects Versions: 1.8.7
>            Reporter: Vadimo
>            Priority: Minor
>         Attachments: zf_extension.pdfbox.xmp
>
>
> {code:title=Bar.java|borderStyle=none}
> InputStream zfExtensionIs = getClass().getResourceAsStream("/zf_extension.pdfbox.xmp");
> DomXmpParser builder = new DomXmpParser();
>          zfDefaultXmp = builder.parse(zfExtensionIs);
> PdfaExtensionHelper.populateSchemaMapping(zfDefaultXmp);
> new XmpSerializer().serialize(zfDefaultXmp, new FileOutputStream("target/out.xmp.xml"), true);
> {code}
> the incoming file 
> {code:xml|title=incoming.xml|borderStyle=none}
>       <rdf:Description xmlns:pdfaExtension="http://www.aiim.org/pdfa/ns/extension/"
>          xmlns:pdfaSchema="http://www.aiim.org/pdfa/ns/schema#" xmlns:pdfaProperty="http://www.aiim.org/pdfa/ns/property#" rdf:about="">
> {code}
> outgoing file 
> {code:xml|title=resulting.xml|borderStyle=none}
> <rdf:Description xmlns:pdfaExtension="http://www.aiim.org/pdfa/ns/extension/" rdf:about="">
> {code}
> why are the two namespaces gone?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)