How to add attachment to existing PDF document
This feature is since XFRX 18.1
* create PDFL#INIT object loSession=EVALUATE([xfrx("PDFL#INIT")]) * open existing PDF document with append mode loSession.createDocument("BASE-UNI.pdf", .T.) * Add attachment - PDF file loSession.addAttachment("some.pdf", .T., "", "application/pdf", "Alternative") * Add attachment - some XML file loSession.addAttachment("some.xml", .T., "", "text/xml", "Alternative") * Add attachment - some XLS file loSession.addAttachment("some.xls",.T.,"","application/vnd.ms-excel", "Alternative") * Add attachment - some XLSX file loSession.addAttachment("some.xlsx", .T., "", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "Alternative") * Finish document loSession.FinishDocument()