Foxit PDF SDK  9.1
com.foxit.sdk.PDFViewCtrl.IDocEventListener Interface Reference

Public Member Functions

void onDocWillOpen ()
 
void onDocLoading (PDFDoc document, int progress)
 
void onDocOpened (PDFDoc document, int errCode)
 
void onDocWillClose (PDFDoc document)
 
void onDocClosed (PDFDoc document, int errCode)
 
void onDocWillSave (PDFDoc document)
 
void onDocSaved (PDFDoc document, int errCode)
 

Detailed Description

The interface for document event listener.

Member Function Documentation

◆ onDocClosed()

void com.foxit.sdk.PDFViewCtrl.IDocEventListener.onDocClosed ( PDFDoc  document,
int  errCode 
)

Triggered when the document is closed.

Parameters
documentA PDFDoc object which specifies the closed PDF document.
errCodeError code. It should be one of constant definitions com.foxit.sdk.common.Constants.

◆ onDocLoading()

void com.foxit.sdk.PDFViewCtrl.IDocEventListener.onDocLoading ( PDFDoc  document,
int  progress 
)

Triggered when loading documents.

Parameters
documentPDF document instance which is loading.
progressAn integer between 0 and 100 (inclusive), indicating the rate of current progress. -1 means error.

◆ onDocOpened()

void com.foxit.sdk.PDFViewCtrl.IDocEventListener.onDocOpened ( PDFDoc  document,
int  errCode 
)

Triggered when the document is opened.

Parameters
documentA PDFDoc object which specifies the opened PDF document.
errCodeError code. It should be one of constant definitions com.foxit.sdk.common.Constants.

◆ onDocSaved()

void com.foxit.sdk.PDFViewCtrl.IDocEventListener.onDocSaved ( PDFDoc  document,
int  errCode 
)

Triggered when the document is saved.

Parameters
documentA PDFDoc object which specifies the saved PDF document.
errCodeError code. It should be one of constant definitions com.foxit.sdk.common.Constants.

◆ onDocWillClose()

void com.foxit.sdk.PDFViewCtrl.IDocEventListener.onDocWillClose ( PDFDoc  document)

Triggered when the document will be closed.

Parameters
documentA PDFDoc object which will be closed.

◆ onDocWillOpen()

void com.foxit.sdk.PDFViewCtrl.IDocEventListener.onDocWillOpen ( )

Triggered when the document will be opened.

◆ onDocWillSave()

void com.foxit.sdk.PDFViewCtrl.IDocEventListener.onDocWillSave ( PDFDoc  document)

Triggered when the document will be saved.

Parameters
documentA PDFDoc object which will be closed.