Skip to main content
Skip table of contents

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

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 was executed successfully.

-1

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/pdf

  • application/xml

  • text/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:

CODE
<Invoice>
   <Version>2</Version>
   <Profile>EXTENDED</Profile>
   <Standard>facturx</Standard>
</Invoice>
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.