| Category | Text 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
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle with an open page. |
Mode | Integer | 0..7, per the PDF text-rendering-mode enumeration. |
Return value — TRUE on success; FALSE if Mode is out of range or no page is open.
See also — pdfGetTextDrawMode
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.