|
|
|
|
PDFReaderInfoXY (Function) In french: LecteurPDFInfoXY 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.
// 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: | | pdfOriginScreen | By 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. | pdfPageNumber | Number of the page that contains the specified position. | pdfXCoord | X-coordinate of the specified position on the page (expressed in millimetres). | pdfYCoord | Y-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).
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|