LatLonToPagePoint

Page properties, Measurement and coordinate units

Description

Converts geographic (Latitude, Longitude) in degrees to page coordinates (PageX, PageY) using the inverse affine transform of the selected page geospatial viewport

Syntax

Delphi

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

ActiveX

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

DLL

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

Parameters

LatitudeGeographic latitude in degrees
LongitudeGeographic longitude in degrees
PageXReceives the computed horizontal page coordinate
PageYReceives the computed vertical page coordinate

Return values

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

See also

AddPageGeoViewport, PagePointToLatLon