<< Click to Display Table of Contents >> VpeSetFacturXParams |
![]() ![]() ![]() |
[VPE Professional Edition and above]
Sets parameters for an embedded Factur-X, ZUGfERD, XRechnung file.
void VpeSetFacturXParams(
VpeHandle hDoc,
LPCSTR InternalName,
LPCSTR DocumentType,
LPCSTR Version,
LPCSTR ConformanceLevel
)
VpeHandle hDoc
Document Handle
LPCSTR 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 "\"
LPCSTR DocumentType
always "INVOICE" (see ZUGfERD / Factur-X spec)
LPCSTR Version
"1.0" (see ZUGfERD / Factur-X spec)
LPCSTR 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:
VpeSetPDFALevel(hDoc, VPE_PDF_A_LEVEL_3B);
VpeAddColorProfile(hDoc,
"GTS_PDFA1",
"sRGB_IEC61966-2-1",
"Custom",
"http://www.color.org",
"sRGB_IEC61966-2-1",
"sRGB_IEC61966-2-1");
VpePDFEmbedFile(hDoc,
"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 VpePDFEmbedFile()
VpeSetFacturXParams(hDoc, "factur-x.xml", "INVOICE", "1.0", "EN 16931");
VpeWriteDoc(hDoc, "test.pdf");