API referenceCore SDK

pdfGetTabLen

Set/get how many space-equivalents a tab character (\t)

C
int32_t __stdcall pdfGetTabLen(PPDF IPDF);
BOOL32 __stdcall pdfSetTabLen(PPDF IPDF, int32_t TabLen);
Delphi
function pdfGetTabLen(const IPDF: PPDF): Integer; stdcall;
function pdfSetTabLen(const IPDF: PPDF; TabLen: Integer): LongBool; stdcall;

Purpose. Set/get how many space-equivalents a tab character (\t) expands to when writing text.

Description. Verified write-only no-op. Stores TabLen into FTabLen (default 3, an explicit DIFF from the classic API's default); this field has no consumer anywhere in the text-writing code path — a literal tab character in text passed to any pdfWriteText-family function is not actually expanded per this setting (its handling, if any, is governed elsewhere, not by this value).

Parameters.

ParameterDescription
IPDFDocument handle.
TabLenStored but never consulted.

Return value. Getter: the stored value (default 3); 0 if IPDF invalid. Setter: True if IPDF valid.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern int pdfGetTabLen(IntPtr IPDF);
Area
Core SDK
Category

Getters

Exported names

pdfGetTabLen

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.