Save attachments to folder.
pdfReader::SaveAttachments(@laAttachments, lcFolder) |
laAttachments
Specifies the name of the array which contains informations about attachments.
lcFolder
Folder for saving attachments.
If was attachment save to file, then forth column in array m.laAttachments was set to .T.
Boolean
Return.T. if attachments save to file, .F. or not.
Applies To: PDF#READER
XFRX version: 19.0
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) LOCAL m.liImages m.liAttachs=m.loPDFR.GetListAttachments(@m.laATTACH) m.loPDFR.SaveAttachments(@m.laATTACH, "c:\temp\xx\") m.loPDFR.closeDocument() |