OpenDocument() Method

Open PDF file.


Object.OpenDocument(tcFile)

Parameters

tcFile
The PDF file.

Return value

Numeric.

NumberDescription
<0PDF file do not open successfully.
>0PDF file open successfully (value is file handle).

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()