GetListImages Method
Get list images from PDF file.
Object.GetListImages(liPage, @laImages)
Parameters
liPage
Number of page. If value is -1, then array contains images informations from all pages .
laImages
Specifies the name of the array to store the images in PDF file.
Column | Description |
---|---|
1 | Page number |
2 | Image ID |
3 | Default extension for image |
4 | Default extension for mask/smask image |
5 | Flag (boolean) id image saved to file |
6 | Flag (boolean) id mask image saved to file |
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 m.laIMGS(1) LOCAL m.lii, m.liCount m.liCount=m.loPDFR.GetListImages(-1, @m.laIMGS) FOR m.lii=1 TO m.liCount ?m.laIMGS(m.lii, 1), m.laIMGS(m.lii, 2), m.laIMGS(m.lii, 3), m.laIMGS(m.lii, 4), m.laIMGS(m.lii, 5), m.laIMGS(m.lii, 6) NEXT m.loPDFR.closeDocument()