GetListAttachments Method
Get list attachments from PDF file.
Object.GetListAttachments(@laAttachments [, lcFileSkeleton])
Parameters
laAttachments
Specifies the name of the array to store the attachments in PDF file.
Column | Description |
---|---|
1 | Attachment ID |
2 | Attachment name |
3 | Attachment description |
4 | Flag (boolean) id attachment saved to file |
lcFileSkeleton
Specifies a file skeleton for selecting attachements.
Return value
Numeric
Count lines in array.
Remarks
Applies To: PDF#READER
XFRX version: 19.0
Examples
m.loPDFR = EVALUATE([xfrx("PDF#READER")]) *m.loPDFR.SetPasswords("owner","user") && set password for pdf file m.lcFile="BASE-UNI.pdf" IF m.loPDFR.openDocument(m.lcFile) < 0 RETURN ENDIF m.lnError=m.loPDFR.ReadDocument() LOCAL ARRAY laATTACH(1) m.liAttachs=m.loPDFR.GetListAttachments(@m.laATTACH) FOR m.lii=1 TO m.liAttachs ?m.laATTACH(m.lii, 1), m.laATTACH(m.lii, 2), m.laATTACH(m.lii, 3), m.laATTACH(m.lii, 4) NEXT m.loPDFR.closeDocument()