PDF4Java Reference Documentation
com.o2sol.pdf4java.content Package / PDFContentExtractor Class / searchText Method / searchText(String,int) Method
Text to find in page content.
A set of options that specify how the text search should be performed. Available values are defined in com.o2sol.pdf4java.content.text.PDFTextSearchOptions class.
Collapse All Expand All
In This Topic

searchText(String,int) Method
In This Topic
Searches the page content for the specified text.
Syntax

    public PDFTextSearchResultCollection searchText(
       java.lang.String text,
       int searchOptions
    )

#### Parameters

text
  Text to find in page content.
searchOptions
  A set of options that specify how the text search should be performed. Available values are defined in com.o2sol.pdf4java.content.text.PDFTextSearchOptions class.

#### Return Value

A collection of zero or more search results.
See Also

#### Reference

PDFContentExtractor Class
PDFContentExtractor Members
Overload List

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.