DynaPDF Manual - Page 649

Previous Page 648   Index   Next Page 650

Function Reference
Page 649 of 770
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
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.
LBOOL pdfSetErrorMode(
const PPDF* IPDF, // Instance pointer
TErrMode ErrMode) // see below
typedef SI32 TErrMode;
#define emIgnoreAll
0x00000000 // Default
#define emSyntaxError 0x00000001
#define emValueError
#define emWarning
#define emFileError
#define emFontError
#define emAllErrors
#define emNoFuncNames 0x10000000 // Do not output function names
#define emUseErrLog
0x20000000 // Redirect all messages to the error log
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 errors except fatal ones and calls the error callback function (if set)
when an error occurs. The last error message is also internally stored so that GetErrorMessage() is
able to return the 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
error, e.g. "SetFont: Font not found!". While this information is useful during development, it is often
not useful in an end user application.
If the flag emUseErrLog is set, DynaPDF redirects all error messages to the error log, see
GetErrLogMessage() / GetErrLogMessageCount() / ClearErrorLog(). The error log is always cleared

Previous topic: SetDrawDirection, SetEMFFrameDPI

Next topic: SetExtColorSpace, SetExtFillColorSpace, SetExtGState