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);
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.
| Parameter | Description |
|---|---|
IPDF | Document handle. |
FileName / Buffer,BufSize | Same as the non-Ext sibling. |
View | Accepted but never read — see the chapter-level note. |
PosX, PosY, Width, Height | Target placement box. |
Return value. Same as pdfInsertMetafile/Ex.
See also. pdfInsertMetafile.
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Metafiles
pdfInsertMetafileExt
pdfInsertMetafileExtA
pdfInsertMetafileExtW
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.