GetHTMLTextWidth
Text, HTML text
Description
Returns the actual horizontal size of a block of HTML text when wrapped to a maximum
width by the DrawHTMLText function. See Appendix A for details of the supported HTML tags.
Syntax
Delphi
Function TPDFlib.GetHTMLTextWidth(MaxWidth: Double; Const HTMLText: WideString): Double;
ActiveX
Function PDFlib::GetHTMLTextWidth(MaxWidth As Double, HTMLText As String) As Double
DLL
double DLGetHTMLTextWidth(int InstanceID, double MaxWidth, const wchar_t * HTMLText);
Parameters
| MaxWidth | The width of the area the text would be drawn into |
|---|---|
| HTMLText | The HTML text to determine the width of |