Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

Save attachments to folder.

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

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()
  • No labels