GetHTMLTextHeight
Text, HTML text
Description
Returns the height that a certain block of HTML text will occupy if drawn onto the page, including Flexbox lines, Grid tracks and footnote areas
See Appendix A for details of the supported HTML tags and CSS properties
Syntax
Delphi
Function TPDFlib.GetHTMLTextHeight(Width: Double; Const HTMLText: WideString): Double;
ActiveX
Function PDFlib::GetHTMLTextHeight(Width As Double, HTMLText As String) As Double
DLL
double DLGetHTMLTextHeight(int InstanceID, double Width, const wchar_t* HTMLText);
double DLGetHTMLTextHeightA(int InstanceID, double Width, const char* HTMLText);
Parameters
| Width | The width of the area the text would be drawn into |
|---|---|
| HTMLText | The HTML to determine the height of. See Appendix A for details of the supported HTML tags. |
Return values
Returns the height the HTML text will occupy when drawn with DrawHTMLText, expressed in the document's current measurement units. Returns 0 when Width is not positive or HTMLText is empty.