PagePointToLatLon

Page properties, Measurement and coordinate units

Description

Converts a page coordinate pair (PageX, PageY) to geographic (Latitude, Longitude) in degrees using the least-squares affine control-point solver on the selected page geospatial viewport

Syntax

Delphi

Function PagePointToLatLon(PageX, PageY: Double; Out Latitude, Longitude: Double): Integer;

ActiveX

Function PDFlib::PagePointToLatLon(PageX As Double, PageY As Double, ByRef Latitude As Double, ByRef Longitude As Double) As Long

DLL

int DLPagePointToLatLon(int InstanceID, double PageX, double PageY, double Out Latitude, double Longitude);

Parameters

PageXHorizontal page coordinate
PageYVertical page coordinate
LatitudeReceives the computed latitude in degrees
LongitudeReceives the computed longitude in degrees

Return values

1 when a geospatial viewport was found and the coordinate was transformed, or 0 on failure

See also

AddPageGeoViewport, LatLonToPagePoint