API referenceCore SDK

pdfGetWMFDefExtent

Set/get the default logical extent (fallback size) used

C
BOOL32 __stdcall pdfGetWMFDefExtent(PPDF IPDF, uint32_t* Width, uint32_t* Height);
BOOL32 __stdcall pdfSetWMFDefExtent(PPDF IPDF, uint32_t Width, uint32_t Height);
Delphi
function pdfGetWMFDefExtent(const IPDF: PPDF; var Width, Height: Cardinal): LongBool; stdcall;
function pdfSetWMFDefExtent(const IPDF: PPDF; Width, Height: Cardinal): LongBool; stdcall;

Purpose. Set/get the default logical extent (fallback size) used when replaying a legacy WMF metafile that lacks its own reliable placeable-header extent — a calibration input for pdfInsertMetafile (Metafile Insertion (EMF/WMF)).

Return value. True on success; False if IPDF is invalid.

C# (P/Invoke)

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

Getters

Exported names

pdfGetWMFDefExtent

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.