API referenceText

pdfGetTextScaling

Read the current horizontal text scaling (PDF Tz operand).

CategoryText state

Purpose — Read the current horizontal text scaling (PDF Tz operand).

Declarations

C
double __stdcall pdfGetTextScaling(PPDF IPDF);
Delphi
function pdfGetTextScaling(const IPDF: PPDF): Double; stdcall; external 'LumasPdf.dll';

Return value — Current scaling as a percentage (PDF default 100); the engine does not itself default this to 100 internally at document creation — it returns whatever FTextScaling's zero-value default is until first set, so check pdfSetTextScaling if you rely on the PDF-spec default explicitly.

See alsopdfSetTextScaling

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
public static extern double pdfGetTextScaling(IntPtr IPDF);
Area
Text
Category

Getters

Exported names

pdfGetTextScaling

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.