Page 1 of 1

How can I insert Zugferd-Informations in a PDF-File

Posted: Tue Dec 06, 2016 5:52 am
by HDemo
Our output format PDF A3a requires an extension, which must be inserted in the PDF file.

This content is:

<rdf:Description xmlns:zf="urn:ferd:pdfa:CrossIndustryDocument:invoice:1p0#" rdf:about="">
<zf:ConformanceLevel>BASIC</zf:ConformanceLevel>
<zf:DocumentFileName>ZUGFeRD-invoice.xml</zf:DocumentFileName>
<zf:DocumentType>INVOICE</zf:DocumentType>
<zf:Version>1.0</zf:Version>
</rdf:Description>

How can I create this extension in the file?
Is it necessary to use an object from the „PDF editor” or “core layer”? Is there a code sample?

I find in the SDK only one set and thus exchange the entire XMPMetaData, if it is the right function at all.

https://sdkhelp.pdf-xchange.com/vie ... ata_SetXMP

Regards

Holger

Re: How can I insert Zugferd-Informations in a PDF-File  SOLVED

Posted: Tue Dec 06, 2016 5:34 pm
by Ivan - Tracker Software
The Editor SDK does not provide a detailed API for the XMP as the XMP is quite complex and it would be not so easy to cover every need by provision of our own API.
So we propose the extraction of any existing XMP from the document (using the function GetXMPMetadata, and IPXC_XMPMetadata::GetXMP), and then use 3rd party libraries to work with the XMP (for example the open source Adobe XMP SDK), and then set it back in the document (see IPXC_XMPMetadata::SetXMP).

Re: How can I insert Zugferd-Informations in a PDF-File

Posted: Wed Dec 21, 2016 7:15 am
by HDemo
i use now the Adobe XMP SDK.

it's working!


Thank you,
issue can be closed!

Re: How can I insert Zugferd-Informations in a PDF-File

Posted: Wed Dec 21, 2016 8:14 am
by Sasha - Tracker Dev Team
:)