THPDFPage TextBox / TextOutBox / GetTextRowCount

맨 위

현재 font와 기존 HotPDF text metric function을 사용해 fixed rectangle 안에 text를 배치합니다

Delphi 구문:

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는 horizontal 및 vertical alignment가 적용된 한 줄을 emit합니다. TextOutBox는 height가 소진될 때까지 제공된 width에 word를 wrap하고 소비된 source character 수를 반환합니다. GetTextRowCount는 같은 wrapping rule에 대한 row count를 반환합니다