THPDFPage.Polygon Method
Provides polygon behaviour for the page drawing workflow. Use it when the surrounding API family needs explicit control over PDF objects, page content, resources, conformance, or diagnostics
Declaration
procedure Polygon(const Points: array of THPDFCurrPoint);
Unit
HPDFDoc
Parameters
| Name | Description |
|---|---|
Points | Array of polygon vertices, each holding X and Y coordinates in user-space units; at least 2 elements are required, and the path starts at Points[0], joining each point in turn |
Return value
This member returns no value
Usage notes
- Use this API in the page drawing workflow before the affected page, resource, field or catalogue object is finalised
- Keep object names, field names, resource names and returned handles stable until the document is finalised
- Page-level changes affect subsequent operators on the same page; save and restore graphics state when a temporary setting should not leak