Operation: Get Version
The Get Version operation of the ZUGFeRD adapter returns an XML file containing information about the version, profile, and standard of the XML that has been provided as the input file or embedded in the PDF file.
For more information on other operations of the ZUGFeRD adapter, see ZUGFeRD.
Parameters
|
Main class of the adapter (do not change!) Possible values: |
|
This parameter is not required for this operation. Name of the input file |
Status values
| The operation was executed successfully. |
| The operation failed due to a technical error, for example, the input file does not contain XML. |
Input
The operation expects a PDF file or an XML file as input.
Note:
Please make sure that the correct MIME type or media type is defined for the input file. One of the following MIME types is possible for the Get Version operation:
application/pdfapplication/xmltext/xml
The MIME type is automatically set if you, for example, import files as resources in the project repository.
If you, for example, load files into your process from a folder on your computer using a File System adapter, you first need to set the MIME type of the file using the Document Properties Changer adapter. For more information on the Document Properties Changer, see Document Properties Changer.
If you do not define the correct MIME type, the adapter issues a corresponding error.
Output
The operation outputs an XML file containing data on version, profile, and standard.
The following is an example XML bean:
<Invoice>
<Version>2</Version>
<Profile>EXTENDED</Profile>
<Standard>facturx</Standard>
</Invoice>