pdfCreateGeospatialMeasure
Attach a geospatial (/Subtype /GEO) /Measure dictionary
int32_t __stdcall pdfCreateGeospatialMeasure(PPDF IPDF, uint32_t Viewport, const char* Attributes);
function pdfCreateGeospatialMeasure(const IPDF: PPDF; Viewport: Cardinal; const Attributes: PAnsiChar): Integer; stdcall;
Purpose. Attach a geospatial (/Subtype /GEO) /Measure dictionary to an existing viewport — the geospatial counterpart of pdfCreateRectilinearMeasure (Patterns, Shadings, ExtGState Creation, and Template Placement), storing caller-supplied attributes (GCS WKT string) verbatim rather than computing a rectilinear scale ratio.
Parameters.
| Parameter | Description |
|---|---|
IPDF | Document handle. |
Viewport | 1-based index of an existing viewport on the current page. |
Attributes | Caller-supplied geospatial coordinate-system attributes (typically WKT), stored verbatim. |
Return value. The Viewport index on success; 0 if there is no open page or Viewport doesn't identify an existing viewport.
See also. pdfCreateRectilinearMeasure.
C# (P/Invoke)
public static extern int pdfCreateGeospatialMeasure(IntPtr IPDF, uint Viewport, [MarshalAs(UnmanagedType.LPStr)] string Attributes);
Object Creation
pdfCreateGeospatialMeasure
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.