THPDFPage.TextOutHTML

THPDFPage

 

Top  Previous  Next

Draws HTML styled text on the page

 

Delphi syntax:

function TextOutHTML( X, Y: Single; const HTML: WideString; const DefaultFontName: AnsiString= 'Arial'; DefaultSize: Single= 12; DefaultColor: TColor= clBlack ): Single; overload;

function TextOutHTML( X, Y, MaxWidth: Single; const HTML: WideString; const DefaultFontName: AnsiString= 'Arial'; DefaultSize: Single= 12; DefaultColor: TColor= clBlack ): Single; overload;

 

Description

Draws HTML styled text on the page

The MaxWidth overload wraps text on word boundaries at MaxWidth user-space points; a MaxWidth of 0 or less keeps the unwrapped behaviour where only <br> and line breaks start a new line

Supports basic HTML tags for styling text output

 

See also: THPDFPage