DrawHTMLText

Text, HTML text, Page layout

Description

Draws HTML and the supported CSS subset onto the page

See Appendix A for supported tags, selectors, properties, tables, and mapped images

Syntax

Delphi

Function TPDFlib.DrawHTMLText(Left, Top, Width: Double; Const HTMLText: WideString): Integer;

ActiveX

Function PDFlib::DrawHTMLText(Left As Double, Top As Double, Width As Double, HTMLText As String) As Long

DLL

int DLDrawHTMLText(int InstanceID, double Left, double Top, double Width, const wchar_t * HTMLText);

Parameters

LeftThe left edge of the area to draw the text into
TopThe top edge of the area to draw the text into
WidthThe width of the area to draw the text into
HTMLTextThe HTML text to draw

Remarks

Supported entities are decoded once: & draws an ampersand, while < draws the literal text < Escaped angle brackets remain text through layout normalization