DynaPDF Manual - Page 360

Previous Page 359   Index   Next Page 361

Function Reference
Page 360 of 777
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0. Check whether
the member StructSize of the structure TPDFError was properly initialized in the latter case.
SI32 pdfGetErrLogMessageCount(
const PPDF* IPDF) // Instance pointer
The function returns the number of error messages in the internal error log.
char* pdfGetErrorMessage(
const PPDF* IPDF) // Instance pointer
The function returns the last error message as pointer to a null-terminated static string, or NULL if
no error occurred. Use this function if an error callback function can not be used (see also
SI32 pdfGetErrorMode(
const PPDF* IPDF) // Instance pointer
typedef SI32 TErrMode;
#define emIgnoreAll
0x00000000 // default
#define emSyntaxError
#define emValueError
#define emWarning
#define emFileError
#define emFontError
#define emAllErrors
#define emNoFuncNames
0x10000000 // Do not output function names
// 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 function returns the current error mode. The return value is a bit mask, to check whether a
specific flag is set use a bitwise and operator.
The special flag emNoFuncNames names can be used to avoid the output of the function name in
error messages. Error messages start normally always with the function name in which the error
occurred. While this information is useful during development, it is often not useful in an end user
The meaning of the error mode flags is described in detail under Customized Exception handling.

Previous topic: GetEMFPatternDistance, GetErrLogMessage

Next topic: GetField (obsolete)