Save attachments to folder.
Code Block |
---|
pdfReader::SaveAttachments(@laAttachments, lcFolder) |
Parameters
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.
Return value
Boolean
Return.T. if attachments save to file, .F. or not.
Remarks
Applies To: PDF#READER
XFRX version: 19.0
Examples
Code Block |
---|
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() |
...