Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 492

Previous Page 491   Index   Next Page 493

Function Reference
Page 492 of 750
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;
};
 

Previous topic: InsertMetafileEx

Next topic: InsertMetafileFromHandleEx