Foxit PDF SDK

Public Member Functions | List of all members
FoxitPDFSDKPython3.ReplaceCallback Class Reference

Inherits FoxitPDFSDKPython3._object.

## Public Member Functions
def | NeedToReplace (search_text, replace_text, current_page_index, text_rect_array)
| A callback function to verify whether need to replace text. More...
def | Release ()
| A callback function used to release current callback object itself. More...

## Detailed Description

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.

## Member Function Documentation

## ◆ NeedToReplace()

def FoxitPDFSDKPython3.ReplaceCallback.NeedToReplace | ( |  | search_text,
|  |  | replace_text,
|  |  | current_page_index,
|  |  | text_rect_array
| ) |  |

A callback function to verify whether need to replace text.

Parameters

  [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 FoxitPDFSDKPython3.PDFDoc.GetPageCount for PDF document.
  [in] | text_rect_array | The found text rect array.

Returns
  true means to replace, while false means not.

## ◆ Release()

def FoxitPDFSDKPython3.ReplaceCallback.Release | ( |  | ) |

A callback function used to release current callback object itself.

Returns
  None.