DynaPDF Manual - Page 422

Previous Page 421   Index   Next Page 423

Function Reference
Page 422 of 777
on E: Exception do MessageDlg(E.Message, mtError, [mbOK], 0);
if pdf <> nil then pdf.Free;
SI32 pdfGetLogMetafileSizeEx(
const PPDF* IPDF,
// Instance pointer
const void* Buffer, // EMF buffer
UI32 BufSize,
// Buffer size in bytes
struct TRectL* R)
// out -> Bounding rectangle
The function retrieves the logical bounding box of an enhanced or Windows metafile. The parameter
Buffer must be a file buffer of an EMF or WMF file.
Because the GDI function SetWinMeatFileBits() is used to convert WMF files to EMF, WMF files are
not supported under Linux or UNIX.
The original size of a metafile must be known to compute a user defined cutting area or viewport.
See GetLogMetafileSize() for an example application.
Return Values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
LBOOL pdfGetMatrix(
const PPDF* IPDF, // Instance pointer
struct TCTM* M)
// Structure which holds the transformation matrix
struct TCTM
double a;
double b;
double c;
double d;
double x;
double y;
The function retrieves the current transformation matrix. Affine transformations are used to scale,
translate, shear, or reflect the coordinate system. Functions which change the coordinate system
change always the current transformation matrix, e.g. RotateCoords(), TranslateCoords(), and so on.
The transformation matrix can also be changed directly with SetMatrix().

Previous topic: GetLineWidth, GetLinkHighlightMode, GetLogMetafileSize

Next topic: GetMaxFieldLen, GetMeasureObj