DynaPDF Manual - Page 707
Previous Page 706 Index Next Page 708
Function Reference
Page 707 of 839
This function is implemented in an Ansi and Unicode compatible version. The Ansi Version
supports Ansi strings of the code page 1252 only. To create a documents info entry in an arbitrary 8
bit or CJK encoding convert the string to Unicode with the function ConvToIncode() and use the
Unicode version to set the document info entry.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetDrawDirection
Syntax:
LBOOL pdfSetDrawDirection(
const PPDF* IPDF,
// Instance pointer
TDrawDirection Direction) // Draw direction
typedef enum
{
ddCounterClockwise = 0,
ddClockwise
= 1
}TDrawDirection;
The function sets the draw direction of closed vector graphics such as rectangles, ellipses, triangles
and so on. The draw direction is important if a path should be filled with the nonzero winding
number rule or even-odd rule. Both modes are described in detail under ClipPath().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetEMFFrameDPI
Syntax:
LBOOL pdfSetEMFFrameDPI(
const PPDF* IPDF, // Instance pointer
UI32 DPIX,
// Horizontal DPI per inch
UI32 DPIY)
// Vertical DPI per inch
This function can be used to adjust DPI value which is used to calculate the picture size of an EMF
file. The values of DPIX and DPIY are only used if the flag mfUseRclFrame is set (see
SetMetaConvFlags()).
The flag mfUseRclFrame is primarily used to convert EMF files which where originally created from
non-portable WMF files. Such files contain often a wrongly calculated picture size (rclBounds) so
that the picture size must be calculated from the rectangle rclFrame of the EMF file header. This is
often the one and only way to convert those files successfully to PDF.
The default DPI value is 100. If the EMF picture appears too large then decrease the DPI value, e.g.
to 72.
Previous topic: SetDocInfoEx
Next topic: SetEMFPatternDistance, SetErrorMode