ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / PDF Reader functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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.
Example
// Recherche un texte dans un champ Lecteur PDF et affiche le texte
PDFReaderSeekFirst(PDF_MonLecteurPDF, "société")
// Recherche l'élément suivant
IF PDFReaderSeekNext(PDF_MonLecteurPDF) = False THEN
	Info("Recherche terminée")
END

// Recherche l'élément précédent
PDFReaderSeekPrevious(PDF_MonLecteurPDF)
Syntax
<Result> = PDFReaderSeekFirst(<PDF Reader control> , <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
Text to find in the content of PDF Reader control.
<Options>: Optional constant (or combination of constants)
Search options:
IgnoreCaseCase and accent insensitive search (ignores uppercase and lowercase differences).
WholeWordWhole word search (enclosed in punctuation characters or spaces).

By default, the search is case sensitive: the text searched for must have the same case as the text to be found. To perform a case-insensitive search, use the IgnoreCase constant.
Remarks
  • The text and the specified search options are automatically taken into account by PDFReaderSeekNext and PDFReaderSeekPrevious run after PDFReaderSeekFirst.
  • Android Starting with version 28, this function is not supported by 32-bit ARM processors. New PDF features require a 64-bit execution mode.
    If an application is to be run on devices with 32-bit ARM processors, it must be generated with WINDEV Mobile 27.
Business / UI classification: UI Code
Component: wd300obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help