C
float __stdcall pdfGetUserUnit(PPDF IPDF);
BOOL32 __stdcall pdfSetUserUnit(PPDF IPDF, float Value);
Delphi
function pdfGetUserUnit(const IPDF: PPDF): Single; stdcall;
function pdfSetUserUnit(const IPDF: PPDF; Value: Single): LongBool; stdcall;
Purpose. Set/get the page's /UserUnit catalog entry — a multiplier scaling the default 1/72 inch PDF unit for oversized pages (e.g. engineering drawings exceeding the PDF spec's ordinary maximum page size).
Return value. Getter: the current multiplier; 0.0 if IPDF invalid. Setter: True if IPDF valid.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Core SDK
Category
Setters
Exported names
pdfSetUserUnit
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.