double __stdcall pdfGetLeading(PPDF IPDF);
BOOL32 __stdcall pdfSetLeading(PPDF IPDF, double Value);
double __stdcall pdfGetTypoLeading(PPDF IPDF);
function pdfGetLeading(const IPDF: PPDF): Double; stdcall;
function pdfSetLeading(const IPDF: PPDF; Value: Double): LongBool; stdcall;
function pdfGetTypoLeading(const IPDF: PPDF): Double; stdcall;
Purpose. Set/get the document's explicit line-leading value (pdfGetLeading/pdfSetLeading, the caller-controlled TL/T*-operator value used by continued-text writers) versus the current font's typographic leading metric (pdfGetTypoLeading, a font-derived value, not settable).
Description. pdfSetLeading silently rejects negative values (only Value >= 0 is stored) — a negative-leading call leaves the prior value unchanged while still returning True.
Parameters.
| Parameter | Description |
|---|---|
IPDF | Document handle. |
Value | *(Set only)* New leading; negative values are silently ignored. |
Return value. Getters: the respective leading value; 0.0 if IPDF invalid. Setter: True if IPDF valid (regardless of whether Value passed the >= 0 check).
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Setters
pdfSetLeading
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.