foxit.common.DocEventCallback Class Reference

Inherits SystemIDisposable.

Public Member Functions

virtual void OnDocOpened (PDFDoc document, ErrorCode error_code)
 Triggered when a PDF document is opened.
More...
 
virtual void OnDocSaved (PDFDoc document, ErrorCode error_code)
 Triggered when a PDF document is saved.
More...
 
virtual void OnDocWillDestroy (PDFDoc document)
 Triggered when a PDF document will be destroyed.
More...
 
virtual void OnDocWillOpen ()
 Triggered when the document will be opened.
More...
 
virtual void OnDocWillSave (PDFDoc document)
 Triggered when a PDF document will be saved.
More...
 
virtual void Release ()
 A callback function used to release current DocEventCallback object itself.
More...
 

Detailed Description

This class represents a callback object used to listen PDF document event. All the pure virtual functions in this class are used as callback functions and should be implemented by user in derived class. User can also re-write the virtual functions in this class in custom way.

Member Function Documentation

◆ OnDocOpened()

void foxit.common.DocEventCallback.OnDocOpened ( PDFDoc  document,
ErrorCode  error_code 
)
inlinevirtual

Triggered when a PDF document is opened.

Parameters
documentA PDF document object which is opened.
error_codeError code which represents the error state when opening the PDF document. Please refer to e_ErrXXX values and it should be one of these values.
Returns
None.

◆ OnDocSaved()

void foxit.common.DocEventCallback.OnDocSaved ( PDFDoc  document,
ErrorCode  error_code 
)
inlinevirtual

Triggered when a PDF document is saved.

Parameters
documentA PDF document object which is saved.
error_codeError code which represents the error state when saving the PDF document. Please refer to e_ErrXXX values and it should be one of these values.
Returns
None.

◆ OnDocWillDestroy()

void foxit.common.DocEventCallback.OnDocWillDestroy ( PDFDoc  document)
inlinevirtual

Triggered when a PDF document will be destroyed.

Parameters
documentA PDF document object which will be destroyed.
Returns
None.

◆ OnDocWillOpen()

void foxit.common.DocEventCallback.OnDocWillOpen ( )
inlinevirtual

Triggered when the document will be opened.

Returns
None.

◆ OnDocWillSave()

void foxit.common.DocEventCallback.OnDocWillSave ( PDFDoc  document)
inlinevirtual

Triggered when a PDF document will be saved.

Parameters
documentA PDF document object which will be saved.
Returns
None.

◆ Release()

void foxit.common.DocEventCallback.Release ( )
inlinevirtual

A callback function used to release current DocEventCallback object itself.

Returns
None.

Foxit Software Corporation Logo
@2018 Foxit Software Incorporated. All rights reserved.