pdfFind2
Find a Unicode text string.
BOOL pdfFind2(PDFViewerHandle viewer, wchar_t *text, int flags)
This function searches the current PDF file for a given text string.
It is a more powerful version of
pdfFind
and pdfFindNext
,
adding the ability to search for a Unicode string, as well as backward
and case-sensitive searching.
pdfFind2
returns a boolean, indicating whether the search
string was found.
The flags
argument contains zero or more of the following
flags (or'ed together):
pdfFind2Backward
: search backward from the starting point; if there is a selection, the search starts immediately before it, otherwise the search starts at the bottom of the current pagepdfFind2CaseSensitive
: perform a case-sensitive search (the default is case-insensitive)pdfFind2Next
: start searching from the previous search result (instead of the current selection or top/bottom of page)pdfFind2OnePageOnly
: search only the current page (normally searches continue on subsequent pages)pdfFind2WholeWord
: limit searches to whole words
C:
/* do a backward, case-sensitive search */
pdfFind2(viewer, L"Needle", pdfFind2Backward | pdfFind2CaseSensitive);