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. 

ColumnDescription
1Attachment ID
2Attachment name
3Attachment description
4Flag (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()