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

DynaPDF Manual - Page 408

Previous Page 407   Index   Next Page 409

Function Reference
Page 408 of 750
pdf.CloseFile;
except
on E: Exception do MessageDlg(E.Message, mtError, [mbOK], 0);
end;
if pdf <> nil then pdf.Free;
end;
GetLogMetafileSizeEx
Syntax:
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.
GetMatrix
Syntax:
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: GetLogMetafileSize

Next topic: GetMeasureObj