THPDFPage.GetTextRowCount Method
Reads text row count information from the current page drawing state. Use the value to inspect parser results, shaping tables, resource availability, or diagnostic counters without mutating document output
Declaration
function GetTextRowCount(BoxWidth: Integer; Text: AnsiString): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
BoxWidth | Input used by GetTextRowCount |
Text | Input used by GetTextRowCount |
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