THPDFPage.AddGeospatialViewport Method
Adds geospatial viewport data to the page drawing workflow. The call creates or attaches the PDF-side object needed by later output, validation, signing, or page rendering steps
Declaration
function AddGeospatialViewport(const Name: AnsiString; Left, Bottom, Right, Top: Double; const Measure: THPDFGeoMeasureInfo): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Name | PDF resource name, packet name, profile name, or caller-defined identifier |
Left | Page coordinate or size value expressed in the current HotPDF coordinate space |
Bottom | Page coordinate or size value expressed in the current HotPDF coordinate space |
Right | Page coordinate or size value expressed in the current HotPDF coordinate space |
Top | Page coordinate or size value expressed in the current HotPDF coordinate space |
Measure | Input used by AddGeospatialViewport |
Return value
Returns an Integer value
Usage notes
- Use this API in the page drawing workflow before the affected page, resource, field, or catalog object is finalized
- Keep object names, field names, resource names, and returned handles stable until the document is finalized
- Page-level changes affect subsequent operators on the same page; save and restore graphics state when a temporary setting should not leak