THPDFPage.ProjectY Method
Projects and converts the Y value in the user coordinate system to the underlying PDF coordinate (usually an inverted origin).
Declaration
function ProjectY(Y: Single): Single;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Y | The Y value relative to user coordinates |
Return values
Returns the underlying actual PDF Y coordinate position (Single).
Usage
- Call: THPDFPage.ProjectY
- Handles Y-axis inversion issues before writing graphics instructions to the document.
- Page-level changes affect subsequent operators on the same page; save and restore graphics state when a temporary setting should not leak