Foxit PDF SDK
<FSAccessibilityProviderCallback>协议 参考

继承自 <NSObject> .

构造函数

(void) - drawLine:page_index:type:line_info_array:
 A callback function used to draw lines for accessibility visualization. 更多...
 
(void) - drawRect:page_index:type:rect_info_array:
 A callback function used to draw rectangles for accessibility visualization. 更多...
 
(void) - drawText:page_index:type:text_info_array:
 A callback function used to draw text for accessibility visualization. 更多...
 
(BOOL) - generateContent:page_index:
 A callback function used to generate content for a specified page. 更多...
 
(NSString *) - getDocumentFileName:
 A callback function used to get the document file name. 更多...
 
(NSString *) - getTextStringByStringID:
 A callback function used to get text string by string ID. 更多...
 
(void) - onContentChanged:page_index:is_notify_self:
 A callback function used to notify that content has changed on a specified page. 更多...
 

详细描述

This class represents an accessibility provider callback used to generate content and draw accessibility visualizations. All the pure virtual functions in this class are used as callback functions and should be implemented by user.

参见
FSAccessibility

函数文档

◆ drawLine:page_index:type:line_info_array:()

- (void) drawLine: (FSPDFDoc *)  pdf_doc
page_index: (int)  page_index
type: (FSAccessibilityProviderCallbackDrawRectType)  type
line_info_array: (FSAccessibilityLineInfoArray *)  line_info_array 
required

A callback function used to draw lines for accessibility visualization.

参数
[in]pdf_docThe PDF document object.
[in]page_indexThe page index.
[in]typeThe draw rect type.
[in]line_info_arrayThe array of accessibility line info objects.
返回
None.

◆ drawRect:page_index:type:rect_info_array:()

- (void) drawRect: (FSPDFDoc *)  pdf_doc
page_index: (int)  page_index
type: (FSAccessibilityProviderCallbackDrawRectType)  type
rect_info_array: (FSAccessibilityRectInfoArray *)  rect_info_array 
required

A callback function used to draw rectangles for accessibility visualization.

参数
[in]pdf_docThe PDF document object.
[in]page_indexThe page index.
[in]typeThe draw rect type. Please refer to values starting from FSAccessibilityProviderCallbackDrawRectTypeContent and this would be one of these values.
[in]rect_info_arrayThe array of accessibility rect info objects.
返回
None.

◆ drawText:page_index:type:text_info_array:()

- (void) drawText: (FSPDFDoc *)  pdf_doc
page_index: (int)  page_index
type: (FSAccessibilityProviderCallbackDrawRectType)  type
text_info_array: (FSAccessibilityTextInfoArray *)  text_info_array 
required

A callback function used to draw text for accessibility visualization.

参数
[in]pdf_docThe PDF document object.
[in]page_indexThe page index.
[in]typeThe draw rect type.
[in]text_info_arrayThe array of accessibility text info objects.
返回
None.

◆ generateContent:page_index:()

- (BOOL) generateContent: (FSPDFDoc *)  pdf_doc
page_index: (int)  page_index 
required

A callback function used to generate content for a specified page.

参数
[in]pdf_docThe PDF document object.
[in]page_indexThe page index.
返回
YES means content generated successfully, while NO means not.

◆ getDocumentFileName:()

- (NSString *) getDocumentFileName: (FSPDFDoc *)  pdf_doc
required

A callback function used to get the document file name.

参数
[in]pdf_docThe PDF document object.
返回
The document file name.

◆ getTextStringByStringID:()

- (NSString *) getTextStringByStringID: (NSString *)  string_id
required

A callback function used to get text string by string ID.

参数
[in]string_idThe string ID.
返回
The text string.

◆ onContentChanged:page_index:is_notify_self:()

- (void) onContentChanged: (FSPDFDoc *)  pdf_doc
page_index: (int)  page_index
is_notify_self: (BOOL)  is_notify_self 
required

A callback function used to notify that content has changed on a specified page.

参数
[in]pdf_docThe PDF document object.
[in]page_indexThe page index.
[in]is_notify_selfWhether to notify self.
返回
None.