Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Save images to folder.XFRX version: 19.0

Code Block
pdfReader::Object.SaveImages(@laImages, lcFolder)

Parameters

laImages
Specifies the name of the array which contains informations about images. 

lcFolder
Folder for saving images. Image file name is folded from page number, image id and default extension. Mask image file name is folded from page number, image id, "msk" text with dot and default extension.
If was image save to file, then fifth column in array m.laImages was set to .T.
If was mask image save to file, then sixth column in array m.laImages was set to .T.

Return value

Boolean.
Return.T. if images 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 m.laIMGS(1)
LOCAL m.liImages
m.liImages=m.loPDFR.GetListImages(-1, @m.laIMGS)
 
* save all images to folder
m.loPDFR.SaveImages(@m.laIMGS, "c:\temp\xx\")
  
m.loPDFR.closeDocument()

...