THPDFPage TextBox / TextOutBox / GetTextRowCount

Top

Places text in fixed rectangles using the current font and the existing HotPDF text metric functions.

Delphi syntax:

procedure TextBox(Rect: TRect; Text: AnsiString; Hor: THPDFJustificationType = jtLeft; Vert: THPDFTextBoxVerticalAlignment = tbvaTop);

function TextOutBox(X, Y, LineSpacing, BoxWidth, BoxHeight: Integer; Text: AnsiString; Align: THPDFJustificationType = jtLeft): Integer;

function GetTextRowCount(BoxWidth: Integer; Text: AnsiString): Integer;

TextBox emits one line with horizontal and vertical alignment. TextOutBox wraps words into the supplied width until the height is exhausted and returns the number of source characters consumed. GetTextRowCount returns the row count for the same wrapping rule.