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

DynaPDF Manual - Page 630

Previous Page 629   Index   Next Page 631

Function Reference
Page 630 of 750
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
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: SetEMFFrameDPI

Next topic: SetExtGState