Foxit PDF SDK
<FSDocEventCallback>协议 参考

继承自 <NSObject> .

构造函数

(void) - onDocOpened:error_code:
 Triggered when a PDF document is opened. 更多...
 
(void) - onDocSaved:error_code:
 Triggered when a PDF document is saved. 更多...
 
(void) - onDocWillDestroy:
 Triggered when a PDF document will be destroyed. 更多...
 
(void) - onDocWillOpen
 Triggered when the document will be opened. 更多...
 
(void) - onDocWillSave:
 Triggered when a PDF document will be saved. 更多...
 

详细描述

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.

函数文档

◆ onDocOpened:error_code:()

- (void) onDocOpened: (FSPDFDoc *)  document
error_code: (FSErrorCode error_code 
required

Triggered when a PDF document is opened.

参数
[in]documentA PDF document object which is opened.
[in]error_codeError code which represents the error state when opening the PDF document. Please refer to values starting from FSErrSuccess and this would be one of these values.
返回
None.

◆ onDocSaved:error_code:()

- (void) onDocSaved: (FSPDFDoc *)  document
error_code: (FSErrorCode error_code 
required

Triggered when a PDF document is saved.

参数
[in]documentA PDF document object which is saved.
[in]error_codeError code which represents the error state when saving the PDF document. Please refer to values starting from FSErrSuccess and this would be one of these values.
返回
None.

◆ onDocWillDestroy:()

- (void) onDocWillDestroy: (FSPDFDoc *)  document
required

Triggered when a PDF document will be destroyed.

参数
[in]documentA PDF document object which will be destroyed.
返回
None.

◆ onDocWillOpen()

- (void) onDocWillOpen
required

Triggered when the document will be opened.

返回
None.

◆ onDocWillSave:()

- (void) onDocWillSave: (FSPDFDoc *)  document
required

Triggered when a PDF document will be saved.

参数
[in]documentA PDF document object which will be saved.
返回
None.