SetTextMode

Text

Description

Specifies the mode to draw subsequent text in. Modes 4 to 7 are used to add text to the clipping path. If one of these modes is selected and text is drawn onto the page, then subsequent items drawn onto the page will be clipped to the outline of the text.

Syntax

Delphi

function TPDFlib.SetTextMode(TextMode: Integer): Integer;

ActiveX

Function PDFlib::SetTextMode(TextMode As Long) As Long

DLL

int DLSetTextMode(int InstanceID, int TextMode);

Parameters

TextModeThe text mode: 0 = Filled text (default) 1 = Outline text 2 = Fill then stroke text 3 = Invisible text 4 = Fill text and add to clipping path 5 = Stroke text and add to clipping path 6 = Fill then stroke text and add to clipping path 7 = Add text to clipping path Anything else = Filled text (default)