Foxit PDF SDK

构造函数 | 所有成员列表
<FSReplaceCallback>协议 参考

继承自 <NSObject> .

## 构造函数
(BOOL) | - needToReplace:replace_text:current_page_index:text_rect_array:
| A callback function to verify whether need to replace text. 更多...

## 详细描述

This class represents a callback object for replacing. All the pure virtual functions in this class are used as callback functions and should be implemented by user.

## 函数文档

## ◆ needToReplace:replace_text:current_page_index:text_rect_array:()

- (BOOL) needToReplace: |  | (NSString *) | search_text
replace_text: |  | (NSString *) | replace_text
current_page_index: |  | (int) | current_page_index
text_rect_array: |  | (FSRectFArray *) | text_rect_array
| required

A callback function to verify whether need to replace text.

参数

  [in] | search_text | The search text. It will not be empty.
  [in] | replace_text | The text will be replaced with. It will not be empty.
  [in] | current_page_index | The current page index.Valid range: from 0 to (count-1). count is returned by function FSPDFDoc::getPageCount for PDF document.
  [in] | text_rect_array | The found text rect array.

返回
  true means to replace, while false means not.