ReadDocument Method
Read objects in pdf file.
Object.ReadDocument()
Return value
Numeric
| Number | Description |
|---|---|
| 0 | OK |
| -10 | The existing document is either corrupted or in an unsupported format |
| -17 | PDF password not is valid. |
Remarks
Applies To: PDF#READER
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()
SELE (m.loPDFR.cCursorName)
BROWSE NORMAL
m.loPDFR.closeDocument()
, multiple selections available,