API referenceText

pdfSetTextScaling

Set horizontal text scaling; emitted immediately as a Tz

CategoryText state

Purpose — Set horizontal text scaling; emitted immediately as a Tz operator.

Declarations

C
BOOL32 __stdcall pdfSetTextScaling(PPDF IPDF, double Value);
Delphi
function pdfSetTextScaling(const IPDF: PPDF; Value: Double): LongBool; stdcall; external 'LumasPdf.dll';

Parameters

ParameterTypeDescription
IPDFPPDFInstance handle with an open page.
ValueDoublePercentage, PDF default 100 (unscaled).

Return valueTRUE on success; FALSE if no page is open.

See alsopdfGetTextScaling

C# (P/Invoke)

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

Setters

Exported names

pdfSetTextScaling

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.