X4 Produktdokumentation

Operation: Embed XML

The Embed XML operation of the ZUGFeRD adapter returns a byte stream of a new PDF file in which XML from an input XML bean is embedded.

For more information on other operations of the ZUGFeRD adapter, see ZUGFeRD (Version 1.0.1).

Notes:

  • Please note that the PDF file must meet the appropriate standard for the desired XML, e.g. PDF/A-3 for ZUGFeRD.

  • If you want to transform existing PDF files into suitable standard formats, you can use the PDF to PDF/A Converter adapter. For more information, see PDF to PDF/A Converter.

Parameters

Adapter

🚫

Main class of the adapter (do not change!)

Possible values: de.softproject.x4.adapter.pdf.zugferd: Main class (Default)

fileName

🔷

This parameter is not required for this operation.

Name of the input file

Status values

1

The operation has been successfully executed and the byte stream of a new PDF file is output including the embedded XML.

-1

The operation failed due to a technical error.

Input

The operation expects an XML bean with the following structure as input:

<Invoice>
<PDF><!-- base64 encoded pdf data --></PDF>
<XML><!-- base64 encoded pdf data --></XML>
</Invoice>

Output

The operation outputs a PDF file in the desired format, including the embedded XML.