| Category | Text state |
|---|
Purpose — Read the current text rendering mode (PDF Tr operand).
Declarations
C
int32_t __stdcall pdfGetTextDrawMode(PPDF IPDF);
Delphi
function pdfGetTextDrawMode(const IPDF: PPDF): Integer; stdcall; external 'LumasPdf.dll';
Return value — Current mode 0..7 (PDF spec: 0=Fill, 1=Stroke, 2=Fill+Stroke, 3=Invisible, 4=Fill+Clip, 5=Stroke+Clip, 6=Fill+Stroke+Clip, 7=Clip only); 0 (the default, Fill) if never set or on an invalid handle — these two cases are indistinguishable from the return value alone.
See also — pdfSetTextDrawMode
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
public static extern int pdfGetTextDrawMode(IntPtr IPDF);
Area
Text
Category
Getters
Exported names
pdfGetTextDrawMode
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.