API referenceText

pdfSetTextDrawMode

Set the text rendering mode; emitted immediately as a Tr

CategoryText state

Purpose — Set the text rendering mode; emitted immediately as a Tr operator into the open content stream.

Description — Validates Mode is 0..7; requires an open page (a content stream must exist to write into).

Declarations

C
BOOL32 __stdcall pdfSetTextDrawMode(PPDF IPDF, int32_t Mode);
Delphi
function pdfSetTextDrawMode(const IPDF: PPDF; Mode: Integer): LongBool; stdcall; external 'LumasPdf.dll';

Parameters

ParameterTypeDescription
IPDFPPDFInstance handle with an open page.
ModeInteger0..7, per the PDF text-rendering-mode enumeration.

Return valueTRUE on success; FALSE if Mode is out of range or no page is open.

See alsopdfGetTextDrawMode

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Text
Category

Setters

Exported names

pdfSetTextDrawMode

String variants

The …A form takes UTF-8, …W takes UTF-16; a bare name aliases the ANSI form.

See working code

Worked examples — complete programs in ten languages.