ITMSFNCCustomPDFGraphicsLib.DrawHTMLText Method
Draws HTML text starting at the specified point and returns its bounding rectangle.
API unit family: TMSFNCPDFGraphicsLib
Declaring type: ITMSFNCCustomPDFGraphicsLib
Overloads
Overload 1
Draws HTML text starting at the specified point and returns its bounding rectangle.
function DrawHTMLText(Text: UnicodeString; Point: TPointF; Scale: Single = 1.0; Calculate: Boolean = False): TRectF; overload;
Parameters
| Name | Description |
|---|---|
Text |
HTML text to render. |
Point |
Top-left position of the text in PDF coordinate units. |
Scale |
Scale factor applied to the text; 1.0 means no scaling. |
Calculate |
When True, measures the text without drawing it. |
Returns
Bounding rectangle of the rendered or measured text.
Overload 2
Draws HTML text within the specified rectangle, optionally flowing across pages.
function DrawHTMLText(Text: UnicodeString; Rect: TRectF; Paging: Boolean = False; Scale: Single = 1.0; Calculate: Boolean = False): TRectF; overload;
Parameters
| Name | Description |
|---|---|
Text |
HTML text to render. |
Rect |
Bounding rectangle for the text layout in PDF coordinate units. |
Paging |
When True, the text continues on subsequent pages when it overflows the rectangle. |
Scale |
Scale factor applied to the text; 1.0 means no scaling. |
Calculate |
When True, measures the text without drawing it. |
Returns
Bounding rectangle of the rendered or measured text.