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
PDFReaderHighlight (Function)
In french: LecteurPDFSurligne
Finds a text in the document displayed by a PDF Reader control and highlights the occurrences of this text in the control.
Example
// Surligne toutes les occurrences de "WINDEV" dans un champ lecteur PDF en jaune
PDFReaderHighlight(PDF_LECTEUR_PDF, "WINDEV", LightYellow, WholeWord)
// Surligne toutes les occurrences de "WEBDEV" en bleu
PDFReaderHighlight(PDF_LECTEUR_PDF, "WEBDEV", LightBlue, WholeWord)
// Surligne toutes les occurrences de "WINDEV Mobile" en orange
PDFReaderHighlight(PDF_LECTEUR_PDF, "WINDEV Mobile", LightOrange, WholeWord)
// Supprime tous les surlignages
PDFReaderHighlight(PDF_LECTEUR_PDF, "")
Syntax
<Result> = PDFReaderHighlight(<PDF Reader control> , <Searched text> [, <Color> [, <Search options>]])
<Result>: Integer
  • Number of text occurrences found in the control.
  • 0 if no element contains the searched text.
<PDF Reader control>: Control name
Name of PDF Reader control to use.
<Searched text>: Character string
  • Text that must be found in the specified element.
  • "" (empty string) to cancel the search.
<Color>: Integer, constant or optional Color variable
Color used to highlight the occurrences found. This color can correspond to:
Note: The default color is light yellow.
<Search options>: Optional Integer constant
Indicates the search options:
IgnoreCaseCase and accent insensitive search (ignores uppercase/lowercase differences).
WholeWordSearches for a whole word (between punctuation characters or spaces).

By default, no option is selected: the search is case sensitive and is performed on incomplete words..
Remarks
  • As long as this function is not called with an empty string ("") to stop the highlighting, all new calls will add an additional highlighting.
  • 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