THPDFPage TextBox / TextOutBox / GetTextRowCount | 傳回頂部 |
|
使用目前 font 與既有 HotPDF text metric functions,將文字放入固定 rectangles 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;
|