GetHTMLTextHeight

Text, HTML text

Description

Returns the height that a certain block of HTML text will occupy if drawn onto the page. See

Appendix A for details of the supported HTML tags.

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, wchar_t * HTMLText);

Parameters

WidthThe width of the area the text would be drawn into
HTMLTextThe HTML to determine the height of. See Appendix A for details of the supported HTML tags.