fgl_report_setPDFFacturXAttachment
Embeds a Factur-X XML attachment into a PDF file.
Syntax
fgl_report_setPDFFacturXAttachment (
out om.SaxDocumentHandler,
url String)
- out om.SaxDocumentHandler - A output pipe obtained by a call to fgl_report_commitCurrentSettings() or a similar function
- url String - A url referring to the Factur-X invoice document. Data URLs are
supported so that the URLs obtained from
Invoice.getXMLAsDataURL()
can be used.
Usage
Function that embeds a Factur-X XML attachment into a a PDF file.
This function requires you to set the output device to PDF before use, using the call fgl_report_selectDevice(PDF).
This function needs to be called after obtaining the om.SaxDocumentHandler by calling fgl_report_commitCurrentSettings() and before calling FINISH REPORT.
For more information on Factur-X, go to Factur-X demo.