API referenceCore SDK

pdfSetWMFPixelPerInch

Set/get the pixels-per-inch scale factor used when

C
int32_t __stdcall pdfGetWMFPixelPerInch(PPDF IPDF);
BOOL32 __stdcall pdfSetWMFPixelPerInch(PPDF IPDF, uint32_t Value);
Delphi
function pdfGetWMFPixelPerInch(const IPDF: PPDF): Integer; stdcall;
function pdfSetWMFPixelPerInch(const IPDF: PPDF; Value: Cardinal): LongBool; stdcall;

Purpose. Set/get the pixels-per-inch scale factor used when converting WMF logical units to PDF points during metafile replay.

Description. Real (FWMFPixelPerInch, default 96) — a source comment notes this was previously "P0 fix: read FWMFPixelPerInch (default 96; pdfSetWMFPixelPerInch writes it); was fake 0," confirming this getter was itself once a stub that has since been corrected to read the real, settable field.

Return value. Getter: the current value (default 96); 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

pdfSetWMFPixelPerInch

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.