DynaPDF Manual - Page 553
Previous Page 552 Index Next Page 554
Function Reference
Page 553 of 839
InsertMetafileExt
Syntax:
LBOOL pdfInsertMetafileExt(
const PPDF* IPDF,
// Instance pointer
const char* FileName, // File path to EMF or WMF file
struct TRectL* View,
// Optional view rectangle (can be NULL)
double PosX,
// X-Coordinate of output rectangle
double PosY,
// Y-Coordinate of output rectangle
double Width,
// Width of output rectangle
double Height)
// Height of output rectangle
struct TRectL
{
SI32 Left;
SI32 Top;
SI32 Right;
SI32 Bottom;
};
The function converts an Enhanced Meta File (EMF) or Windows Meta File (WMF) to a native PDF
vector graphic in the same way as InsertMetafile(). However, the function supports an additional
parameter View which can be used to zoom into an EMF or WMF file.
How the View rectangle must be calculated is described in detail under the function
GetLogMetafileSize(), this function is always required for the calculation.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
InsertMetafileExtEx
Syntax:
LBOOL pdfInsertMetafileExtEx(
const PPDF* IPDF,
// Instance pointer
const void* Buffer,
// Metafile buffer
UI32 BufSize,
// Buffer length
struct TRectL* View, // Optional view rectangle (can be NULL)
double PosX,
// X-Coordinate of output rectangle
double PosY,
// Y-Coordinate of output rectangle
double Width,
// Width of output rectangle
double Height)
// Height of output rectangle
struct TRectL
{
SI32 Left;
SI32 Top;
SI32 Right;
SI32 Bottom;
};
The function converts an Enhanced Meta File (EMF) or Windows Meta File (WMF) to a native PDF
vector graphic in the same way as InsertMetafileExt(). However, this function requires a file buffer
Previous topic: InsertMetafileEx
Next topic: InsertMetafileFromHandle, InsertMetafileFromHandleEx