How to add attachment to existing PDF document

This feature is since XFRX 18.1

* create PDFL#INIT object
* 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/", "Alternative") 

* Add attachment - some XLSX file
loSession.addAttachment("some.xlsx", .T., "", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "Alternative") 

* Finish document