int32_t __stdcall pdfGetWMFPixelPerInch(PPDF IPDF);
BOOL32 __stdcall pdfSetWMFPixelPerInch(PPDF IPDF, uint32_t Value);
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)
public static extern int pdfGetWMFPixelPerInch(IntPtr IPDF);
Getters
pdfGetWMFPixelPerInch
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.