Omnis PDF Device.$embedinvoicedata()

Function group Execute on client Platform(s)
Omnis PDF Device NO All

Syntax

Omnis PDF Device.$embedinvoicedata(cData, iFormat[, cDocumentType='INVOICE', iProfile=kDevOmnisPDFInvoiceProfileEN16931])

Description

Embeds the invoice data in cData that has been loaded into memory into a PDF and marks it as an invoice according to the Factur-X or ZUGFeRD format in iFormat. It is your responsibility to ensure the electronic invoice data is compliant with the chosen format.

The parameters are as follows:

The following parameters set the required metadata:

Constant Description
kDevOmnisPDFInvoiceProfileMinimum ‘minimum’ standard; the minimum fields needed for a valid invoice
kDevOmnisPDFInvoiceProfileBasic ‘basic’ standard; the basic fields needed for most business invoices
kDevOmnisPDFInvoiceProfileBasicWL ‘basic wl’ as above, but ‘with lines’ for itemized invoices
kDevOmnisPDFInvoiceProfileEN16931 ‘EN 16931’ (the default) is the primary European standard specifying the required fields for an invoice
kDevOmnisPDFInvoiceProfileExtended ‘extended’ standard; the core standard with additional fields for specific industries including construction, logistics, healthcare
kDevOmnisPDFInvoiceProfileXRechnung ‘XRechnung’ (X Invoice); a German standard, used when iFormat is kDevOmnisPDFInvoiceFormatZUGFeRD