<< Click to Display Table of Contents >> SetFacturXParams |
![]() ![]() ![]() |
[VPE Professional Edition and above]
Sets parameters for an embedded Factur-X, ZUGfERD, XRechnung file.
method void VPE.SetFacturXParams(
string InternalName,
string DocumentType,
string Version,
string ConformanceLevel
)
string InternalName
as used inside PDF, if e-invoice, must be "factur-x.xml", for XRechnung: "xrechnung.xml"
should only contain ASCII characters 33 - 126 and no slash "/" or backslash "\"
string DocumentType
always "INVOICE" (see ZUGfERD / Factur-X spec)
string Version
"1.0" (see ZUGfERD / Factur-X spec)
string ConformanceLevel
MINIMUM, BASIC WL, BASIC, EN 16931, EXTENDED, XRECHNUNG (see ZUGfERD / Factur-X spec)
Example:
In the following example, a Factur-X / ZUGfERD conformant PDF file is generated:
Doc.SetPDFALevel(VPE_PDF_A_LEVEL_3B)
Doc.AddColorProfile(
"GTS_PDFA1",
"sRGB_IEC61966-2-1",
"Custom",
"http://www.color.org",
"sRGB_IEC61966-2-1",
"sRGB_IEC61966-2-1")
Doc.PDFEmbedFile(
"c:\\data\\factur-x-0327.xml",
"factur-x.xml",
"electronic invoice",
"text/xml",
"Alternative")
// note that InternalName is identical to the InternalName used for the call to PDFEmbedFile()
Doc.SetFacturXParams("factur-x.xml", "INVOICE", "1.0", "EN 16931")
Doc.WriteDoc("test.pdf")