Foxit PDF SDK
<FSParagraphEditingProviderCallback>协议 参考

继承自 <NSObject> .

构造函数

(void) - addUndoItem:
 用于通知页面添加撤销操作的回调函数。 更多...
 
(FSRectF *) - getClientRect:
 用于获取设备坐标系统中的客户端矩形的回调函数。 更多...
 
(int) - getCurrentPageIndex:
 用于获取当前页面索引的回调函数。 更多...
 
(FSRectF *) - getPageRect:page_index:
 用于获取设备坐标系统中页面矩形的回调函数。 更多...
 
(void *) - getPageViewHandle:page_index:
 用于获取页面视图窗口句柄的回调函数。 更多...
 
(FSRectF *) - getPageVisibleRect:page_index:
 用于获取设备坐标系统中可见页面矩形的回调函数。 更多...
 
(FSMatrix2D *) - getRenderMatrix:page_index:
 获取渲染矩阵的回调函数。 更多...
 
(FSRotation- getRotation:page_index:
 用于获取页面视图旋转的回调函数。 更多...
 
(float) - getScale:page_index:
 用于获取页面缩放比例的回调函数。 更多...
 
(NSArray< NSNumber * > *) - getVisiblePageIndexArray:
 用于获取可见页面索引的回调函数。 更多...
 
(BOOL) - gotoPageView:page_index:left:top:
 用于跳转到页面视图的回调函数。 更多...
 
(void) - invalidateRect:page_index:invalid_rects:
 用于使页面矩形无效的回调函数。 更多...
 
(void) - notifyTextInputReachLimit:page_index:
 用于通知文本输入达到限制的回调函数。 更多...
 
(void) - setDocChangeMark:
 用于通知文档已更改的回调函数。 更多...
 

详细描述

此类表示用于段落编辑提供程序的回调对象。 此类中的所有纯虚函数都用作回调函数,应由用户实现。

函数文档

◆ addUndoItem:()

- (void) addUndoItem: (FSParagraphEditingUndoItem *)  undo_item
required

用于通知页面添加撤销操作的回调函数。

参数
[in]undo_item撤销项对象。
返回
无。

◆ getClientRect:()

- (FSRectF*) getClientRect: (FSPDFDoc *)  document
required

用于获取设备坐标系统中的客户端矩形的回调函数。

参数
[in]document有效的 PDF 文档。
返回
客户端矩形。

◆ getCurrentPageIndex:()

- (int) getCurrentPageIndex: (FSPDFDoc *)  document
required

用于获取当前页面索引的回调函数。

参数
[in]document有效的 PDF 文档。
返回
页面索引。

◆ getPageRect:page_index:()

- (FSRectF*) getPageRect: (FSPDFDoc *)  document
page_index: (int)  page_index 
required

用于获取设备坐标系统中页面矩形的回调函数。

参数
[in]document有效的 PDF 文档。
[in]page_index页面索引。
返回
页面矩形。

◆ getPageViewHandle:page_index:()

- (void*) getPageViewHandle: (FSPDFDoc *)  document
page_index: (int)  page_index 
required

用于获取页面视图窗口句柄的回调函数。

参数
[in]document有效的PDF文档。
[in]page_index页面索引。
返回
页面视图窗口句柄。

◆ getPageVisibleRect:page_index:()

- (FSRectF*) getPageVisibleRect: (FSPDFDoc *)  document
page_index: (int)  page_index 
required

用于获取设备坐标系统中可见页面矩形的回调函数。

参数
[in]document有效的 PDF 文档。
[in]page_index页面索引。
返回
页面可见矩形。

◆ getRenderMatrix:page_index:()

- (FSMatrix2D*) getRenderMatrix: (FSPDFDoc *)  document
page_index: (int)  page_index 
required

获取渲染矩阵的回调函数。

参数
[in]document有效的PDF文档。
[in]page_index有效的编辑器页面对象。
返回
矩阵。

◆ getRotation:page_index:()

- (FSRotation) getRotation: (FSPDFDoc *)  document
page_index: (int)  page_index 
required

用于获取页面视图旋转的回调函数。

参数
[in]document有效的 PDF 文档。
[in]page_index页面索引。
返回
缩进值。

◆ getScale:page_index:()

- (float) getScale: (FSPDFDoc *)  document
page_index: (int)  page_index 
required

用于获取页面缩放比例的回调函数。

参数
[in]document有效的 PDF 文档。
[in]page_index页面索引。
返回
缩放值。返回值应大于 0。

◆ getVisiblePageIndexArray:()

- (NSArray<NSNumber *> *) getVisiblePageIndexArray: (FSPDFDoc *)  document
required

用于获取可见页面索引的回调函数。

参数
[in]document有效的 PDF 文档。
返回
可见页面索引数组。

◆ gotoPageView:page_index:left:top:()

- (BOOL) gotoPageView: (FSPDFDoc *)  document
page_index: (int)  page_index
left: (float)  left
top: (float)  top 
required

用于跳转到页面视图的回调函数。

参数
[in]document有效的 PDF 文档。
[in]page_index页面索引。
[in]left页面中鼠标左键释放处的左侧点,在 PDF 坐标系统中。
[in]top页面中鼠标左键释放处的顶部点,在 PDF 坐标系统中。
返回
true 表示成功,而 false 表示失败。

◆ invalidateRect:page_index:invalid_rects:()

- (void) invalidateRect: (FSPDFDoc *)  document
page_index: (int)  page_index
invalid_rects: (FSRectFArray *)  invalid_rects 
required

用于使页面矩形无效的回调函数。

参数
[in]document有效的 PDF 文档。
[in]page_index页面索引。
[in]rects无效区域。invalid_rects 中的矩形在设备坐标系统中。
返回
无。

◆ notifyTextInputReachLimit:page_index:()

- (void) notifyTextInputReachLimit: (FSPDFDoc *)  document
page_index: (int)  page_index 
required

用于通知文本输入达到限制的回调函数。

参数
[in]document有效的 PDF 文档。
[in]editor_page编辑器页面。
返回
无。

◆ setDocChangeMark:()

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

用于通知文档已更改的回调函数。

参数
[in]document有效的 PDF 文档。
返回
无。