DynaPDF Manual - Page 708

Previous Page 707   Index   Next Page 709

Function Reference
Page 708 of 839
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetEMFPatternDistance
Syntax:
LBOOL pdfSetEMFPatternDistance(
const PPDF* IPDF, // Instance pointer
double Value)
// Distance between pattern lines in units
The function changes the default distance between lines of standard patterns during EMF
conversion.
Default value = 4.0
Minimum value = 1.0
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetErrorMode
Syntax:
LBOOL pdfSetErrorMode(
const PPDF* IPDF, // Instance pointer
TErrMode ErrMode) // see below
typedef SI32 TErrMode;
#define emIgnoreAll
0x00000000 // Default
#define emSyntaxError
0x00000001
#define emValueError
0x00000002
#define emWarning
0x00000004
#define emFileError
0x00000008
#define emFontError
0x00000010
#define emAllErrors
0x0000FFFF
#define emNoFuncNames
0x10000000 // Do not output function names
#define emUseErrLog
0x20000000 // Redirect all messages to the error log
// Special flags for CheckConformance().
// These flags add info messages to the error log. The error callback function is not invoked.
#define emLogFonts
0x00010000 // If set, CheckConformance() logs which fonts were replaced
with
// system fonts or converted to Type3
#define emLogFontsVerbose 0x00020000 // If set, the path to the font file is added to the message too
The error mode specifies which error types should be treated as fatal error and whether error
messages should be added to the error log instead of calling the error callback function.
By default, DynaPDF ignores all non-fatal errors but calls the error callback function (if set) if an
error occurs. The last error message is also internally stored so that GetErrorMessage() is able to
return the last error message. Once a fatal error occurred, processing breaks immediately and no
further error messages or warnings are returned.
The special flag emNoFuncNames names can be used to avoid the output of the function name in
which the error occured. Error messages start normally with the function name that produced the
 

Previous topic: SetDrawDirection, SetEMFFrameDPI

Next topic: SetExtColorSpace, SetExtFillColorSpace