PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV and WINDEV Mobile 26 feature!
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
For a given position in a PDF Reader control (coordinates of a control point), 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
Requested type of information:
pdfXCoordX-coordinate of the specified position on the page (expressed in millimetres).
pdfYCoordY-coordinate of the specified position on the page (expressed in millimetres).
pdfPageNumberNumber of the page that contains the specified position.
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.
<X>: Integer
X coordinate (in pixels) to study. This coordinate is relative to the control (if the pdfOriginScreen constant is not specified).
<Y>: Integer
Y coordinate (in pixels) to study. 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