THPDFPage.WideTextOutBox Method
Outputs a Unicode string inside a rectangular text box with automatic line wrapping, and returns the number of lines actually placed
Declaration
function WideTextOutBox(X, Y, LineSpacing, BoxWidth, BoxHeight: Integer; Text: WideString; Align: THPDFJustificationType): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
X | Top-left X coordinate of the text box, in user-space units |
Y | Top-left Y coordinate of the text box, in user-space units |
LineSpacing | Line spacing, in user-space units |
BoxWidth | Input used by WideTextOutBox |
BoxHeight | Text box height, in user-space units |
Text | The Unicode text to output |
Align | Justification (jtLeft, jtCenter, jtRight, jtJustified) |
Return value
Returns an Integer value
Usage notes
- Use this API in the page geometry 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