com.spire.pdf.texts
Class PdfTextFinder

java.lang.Object
  extended by com.spire.pdf.texts.PdfTextFinder

public class PdfTextFinder
extends java.lang.Object

Representing the way how to find text


Constructor Summary
PdfTextFinder(PdfPageBase page)
          Initializes a new instance.
 
Method Summary
 java.util.List<PdfTextFragment> find(java.lang.String targetText)
          Find text.
 java.util.List<PdfTextFragment> find(java.lang.String targetText, PdfTextFindOptions options)
          Find text.
 java.util.List<PdfTextFragment> findAllText(PdfPageBase page)
          Find all text in a page.
 PdfTextFindOptions getOptions()
          Gets the text find options.
 void setOptions(PdfTextFindOptions options)
          Sets the text find options.
 

Constructor Detail

PdfTextFinder

public PdfTextFinder(PdfPageBase page)
Initializes a new instance.

Parameters:
page - The page.
Method Detail

getOptions

public PdfTextFindOptions getOptions()
Gets the text find options.

Returns:
The text find options.

setOptions

public void setOptions(PdfTextFindOptions options)
Sets the text find options.

Parameters:
options - The text find options.

find

public java.util.List<PdfTextFragment> find(java.lang.String targetText)
Find text.

Parameters:
targetText - The target text.

find

public java.util.List<PdfTextFragment> find(java.lang.String targetText,
                                            PdfTextFindOptions options)
Find text.

Parameters:
targetText - The target text.
options - The find options.

findAllText

public java.util.List<PdfTextFragment> findAllText(PdfPageBase page)
Find all text in a page.

Parameters:
page - The page
Returns:
All text find in the page.