THPDFPage.TextOutBox Method
Provides the TextOutBox behavior for the page geometry workflow. Use it when the surrounding API family needs explicit control over PDF objects, page content, resources, conformance, or diagnostics
Declaration
function TextOutBox(X, Y, LineSpacing, BoxWidth, BoxHeight: Integer; Text: AnsiString; Align: THPDFJustificationType): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
X | Page coordinate or size value expressed in the current HotPDF coordinate space |
Y | Page coordinate or size value expressed in the current HotPDF coordinate space |
LineSpacing | Input used by TextOutBox |
BoxWidth | Input used by TextOutBox |
BoxHeight | Input used by TextOutBox |
Text | Input used by TextOutBox |
Align | Input used by TextOutBox |
Return value
Returns an Integer value
Usage notes
- Use this API in the page geometry 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