DynaPDF Manual - Page 451

Previous Page 450   Index   Next Page 452

Function Reference
Page 451 of 839
GetLineWidth
Syntax:
double pdfGetLineWidth(
const PPDF* IPDF) // Instance pointer
The function returns the current line width used for stroked vector graphics and the border of
interactive objects.
GetLinkHighlightMode
Syntax:
SI32 pdfGetLinkHighlightMode(
const PPDF* IPDF) // Instance pointer
typedef enum
{
hmNone,
// Default
hmInvert,
// Invert the contents of the annotation's bounding box
hmOutline, // Invert the annotations border
hmPush,
// Simulate a push button effect
hmPushUpd
// Update appearance stream on changes
}THighlightMode;
The function returns the current highlight mode used for newly created annotations.
GetLogMetafileSize
Syntax:
SI32 pdfGetLogMetafileSize(
const PPDF* IPDF,
// Instance pointer
const char* FileName, // File path to EMF file
struct TRectL* R)
// out -> Bounding rectangle
struct TRectL
{
SI32 Left;
SI32 Top;
SI32 Right;
SI32 Bottom;
};
The function retrieves the logical bounding box of an enhanced or Windows metafile. The
parameter FileName must be the file path to the EMF or WMF file. The parameter R gets the
unscaled logical bounding box of the metafile. This bounding box is required to calculate a user
defined cutting area or viewport (see the example below the description of the function).
Remarks:
Two WMF formats are available, the old non-portable WMF format and the newer portable WMF
format. Both formats must be converted to EMF with the GDI function SetWinMetaFileBits() before
the logical bounding box can be calculated (the conversion is done automatically). However, non-
portable WMF files are device-dependent, they contain no size information. To get correct results,
the default size must be set with the function SetWMFDefExtent() beforehand. The parameters
 

Previous topic: GetLeading, GetLineCapStyle, GetLineJoinStyle

Next topic: GetLogMetafileSizeEx