ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / PDF Reader functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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
// Page number
nPage is int
nPage = PDFReaderInfoXY(PDF_NoName1, pdfPageNumber, MouseXPos(), MouseYPos())
 
// X-position in millimeters
rXPos is real
rXPos = PDFReaderInfoXY(PDF_NoName1, pdfXCoord, MouseXPos(), MouseYPos())
 
// Y-position in millimeters
rYPos is real
rYPos = PDFReaderInfoXY(PDF_NoName1, 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: 05/02/2023

Send a report | Local help