Debenu Quick PDF logo

GetHTMLTextWidth

Text, HTML text

Version history

This function was introduced in Quick PDF Library version 7.11.

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 TDebenuPDFLibrary1511.GetHTMLTextWidth(MaxWidth: Double; 
  HTMLText: WideString): Double;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::GetHTMLTextWidth(MaxWidth As Double,
  HTMLText As String) As Double

DLL

double DPLGetHTMLTextWidth(int InstanceID, double MaxWidth, 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

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport