API referenceImages

pdfInsertMetafileExt

Same as pdfInsertMetafile/Ex, with an additional View

C
BOOL32 __stdcall pdfInsertMetafileExtA(PPDF IPDF, const char* FileName, TRectL* View, double PosX, double PosY, double Width, double Height);
BOOL32 __stdcall pdfInsertMetafileExtW(PPDF IPDF, const wchar_t* FileName, TRectL* View, double PosX, double PosY, double Width, double Height);
BOOL32 __stdcall pdfInsertMetafileExtEx(PPDF IPDF, void* Buffer, uint32_t BufSize, TRectL* View, double PosX, double PosY, double Width, double Height);
Delphi
function pdfInsertMetafileExtA(const IPDF: PPDF; const FileName: PAnsiChar; View: PRectL; PosX, PosY, Width, Height: Double): LongBool; stdcall;
function pdfInsertMetafileExtW(const IPDF: PPDF; const FileName: PWideChar; View: PRectL; PosX, PosY, Width, Height: Double): LongBool; stdcall;
function pdfInsertMetafileExtEx(const IPDF: PPDF; Buffer: Pointer; BufSize: Cardinal; View: PRectL; PosX, PosY, Width, Height: Double): LongBool; stdcall;

Purpose. Same as pdfInsertMetafile/Ex, with an additional View source-window parameter for ABI compatibility.

Description. Functionally identical to the non-Ext siblings — View is accepted but, per the shared-model note above, deliberately never read; the call sequence and replay behavior are otherwise exactly the same. There is no behavioral reason to prefer Ext over the plain form in this SDK; it exists purely so callers porting classic-API code that passes a View rect continue to compile and run unchanged.

Parameters.

ParameterDescription
IPDFDocument handle.
FileName / Buffer,BufSizeSame as the non-Ext sibling.
ViewAccepted but never read — see the chapter-level note.
PosX, PosY, Width, HeightTarget placement box.

Return value. Same as pdfInsertMetafile/Ex.

See also. pdfInsertMetafile.

C# (P/Invoke)

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

Metafiles

Exported names

pdfInsertMetafileExt pdfInsertMetafileExtA pdfInsertMetafileExtW

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.