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:

Parameters

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.