Versions Compared

Key

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

Read objects in pdf file.


Code Block
Object.ReadDocument()

Return value

Numeric

NumberDescription
 0OK
-10The existing document is either corrupted or in an unsupported format
-17PDF password not is valid.

Remarks

Applies To: PDF#READER

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()
 
SELE (m.loPDFR.cCursorName)
BROWSE NORMAL
  
m.loPDFR.closeDocument()
 

...