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
For a given position (coordinates of a point) in a PDF Reader control, returns one of the following:
  • the page number for the specified position,
  • the X-position (in mm) for the specified position,
  • the Y-position (in mm) for the specified position.
Example
// Numéro de page
nPage is int
nPage = PDFReaderInfoXY(PDF_SansNom1, pdfPageNumber, MouseXPos(), MouseYPos())

// Position de X en millimètres
rPosX is real
rPosX = PDFReaderInfoXY(PDF_SansNom1, pdfXCoord, MouseXPos(), MouseYPos())

// Position de Y en millimètres
rPosY is real
rPosY = PDFReaderInfoXY(PDF_SansNom1, pdfYCoord, MouseXPos(), MouseYPos())
Syntax
<Result> = PDFReaderInfoXY(<PDF Reader control> , <Type of information> , <X> , <Y>)
<Result>: Real
Requested information.
<PDF Reader control>: Control name
Name of PDF Reader control to use.
If this parameter corresponds to an empty string (""), the control to which the current event belongs will be used.
<Type of information>: Integer constant
Type of information requested:
pdfOriginScreenBy default, (0,0) corresponds to row 1, column 1 of the Word Processing control (scrollbars located at the origin).
If the pdfOriginScreen constant is combined with the previous constants, (0,0) corresponds to the origin of the screen.
This constant cannot be used on its own.
pdfPageNumberNumber of the page that contains the specified position.
pdfXCoordX-coordinate of the specified position on the page (expressed in millimetres).
pdfYCoordY-coordinate of the specified position on the page (expressed in millimetres).
<X>: Integer
X-coordinate (in pixels) to be analyzed. This coordinate is relative to the control (if the pdfOriginScreen constant is not specified).
<Y>: Integer
Y-coordinate (in pixels) to be analyzed. This coordinate is relative to the control (if the pdfOriginScreen constant is not specified).
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help