PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Initializes the search for a text in a PDF file displayed by the PDF Reader control and positions on the first occurrence found (from the current page). The text found is selected.
Versions 25 and later
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 25
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Example
// Seeks a text in a PDF Reader control and displays it
PDF_MyPDFReader.SeekFirst("company")
// Finds the next element
IF PDF_MyPDFReader.SeekNext() = False THEN
Info("Search ended")
END
 
// Finds the previous element
PDF_MyPDFReader.SeekPrevious()
Syntax
<Result> = <PDF Reader control>.SeekFirst(<Text to find> [, <Options>])
<Result>: Boolean
  • True if the text was found in the document,
  • False if the text was not found.
<PDF Reader control>: Control name
Name of PDF Reader control to use.
<Text to find>: Character string (with quotes)
Text to find in the content of PDF Reader control.
<Options>: Optional constant (or combination of constants)
Search options:
WholeWordSearch for the whole word (enclosed in punctuation characters or in space characters).
IgnoreCaseSearch while ignoring the case (lowercase/uppercase characters) and the accented characters.

The search is case sensitive by default: the sought text and the text to find must have the same case. To perform a search while ignoring the case, use the IgnoreCase constant.
Remarks
The text and the specified search options are automatically taken into account by <PDF Reader>.SeekNext and <PDF Reader>.SeekPrevious run after <PDF Reader>.SeekFirst.
Component : wd250obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment