Class FacturXManager
Makes a document a Factur-X / ZUGFeRD hybrid invoice: a PDF/A-3 file with the invoice XML (UN/CEFACT Cross Industry Invoice) embedded, linked from the catalog's associated files, and declared in the XMP metadata with the Factur-X PDF/A extension schema. FreePDF checks that the XML is a well-formed Cross Industry Invoice. It does not check the invoice content against EN 16931 or a profile's business rules; validate the XML with the tools of your e-invoicing provider.
public sealed class FacturXManager : ManagerBase
- Inheritance
-
objectManagerBaseFacturXManager
Fields
- XmpNamespace
The XMP namespace of the Factur-X extension schema (Factur-X 1.0, ZUGFeRD 2.x).
Properties
- FileName
Gets the name under which the invoice XML is embedded: factur-x.xml, or xrechnung.xml for XRechnung.
- Profile
Gets the profile of the embedded invoice, or null if no invoice is set.
Methods
- ForDocument(PdfDocument)
Gets or creates the FacturXManager for the specified document.
- SetInvoice(byte[], FacturXProfile, string?)
Embeds the invoice XML and declares the document a Factur-X invoice of the specified profile. Call it before adding pages unless a PDF/A-3 format is already set: without one, the document becomes PDF/A-3B, and FreePDF sets PDF/A formats only before content exists.