ElectronicInvoice Class

A Factur-X / ZUGFeRD electronic invoice (or credit note, corrected invoice and the other invoice types) or an Order-X electronic order: the XML in the UN/CEFACT Cross Industry syntax that is embedded in a PDF/A-3 document together with the identification metadata the receiving software looks for. Create an instance with FromXml(Byte), FromXml(String) or FromFile(String), then pass it to AddElectronicInvoice on the HTML to PDF document options, on the PDF document or on the PDF editor. The profile, the document number and the document type are read from the XML. For an invoice that is also an accessible PDF/UA-1 document, generate it with PdfUa1PdfA3a

Definition

Namespace: Winnovative.Pdf.Next
Assembly: Winnovative.Pdf.Next (in Winnovative.Pdf.Next.dll) Version: 20.86.0
C#
public sealed class ElectronicInvoice
Inheritance
Object    ElectronicInvoice

Properties

Description The description shown next to the file name in the Attachments panel of PDF viewers. The default names the standard and the type of the document, followed by its number, for example "Factur-X/ZUGFeRD credit note GS-2026-0007" or "Order-X order PO-2026-0101"
DocumentType The type of the document, read from its document type code: an invoice, a credit note, a corrected invoice, an order and the other types of ElectronicDocumentType
DocumentTypeCode The document type code of the document (UNTDID 1001), for example 380 for a commercial invoice, 381 for a credit note or 220 for an order, or an empty string when the XML does not contain one
FileName The name of the embedded XML file prescribed by the standard: factur-x.xml, xrechnung.xml for the XRECHNUNG profile, or order-x.xml for an Order-X document
InvoiceNumber The invoice number, or the order number for an Order-X document (the ID of the exchanged document), or an empty string when the XML does not contain one
IsOrder True for an Order-X order, order change or order response, false for a Factur-X / ZUGFeRD invoice
Profile The profile of the document, read from the guideline identifier in the XML
Relationship The relationship between the embedded XML and the visible document, written as AFRelationship. The default is Alternative: the XML and the page carry the same document. Source and Data can also be used. For the MINIMUM and BASIC WL profiles the XML does not carry the complete invoice and the relationship written is always Data, as the standard requires

Methods

Equals
(Inherited from Object)
FromFile Creates an electronic invoice or order from an XML file
FromXml(Byte) Creates an electronic invoice or order from the XML data
FromXml(String) Creates an electronic invoice or order from the XML text. The XML is embedded encoded as UTF-8
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
ToString
(Inherited from Object)

See Also