DynaPDF Manual - Page 363

Previous Page 362   Index   Next Page 364

Function Reference
Page 363 of 787
ParseContent(), IsEmptyPage(), IsColorPage(), GetPageText(), RasterPage(), RasterPDFFile(), and so
on. However, the error log will be integrated in all functions which can produce multiple warnings
like InsertImage(), InsertMetafile(), AddOutputIntent() and so on.
The number of possible error messages is restricted by default to 100 messages per PDF instance.
However, it is possible to adjust the maximum number of messages with SetMaxErrLogMsgCount().
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.
GetErrLogMessageCount
Syntax:
SI32 pdfGetErrLogMessageCount(
const PPDF* IPDF) // Instance pointer
The function returns the number of error messages in the internal error log.
GetErrorMessage
Syntax:
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
SetOnErrorProc()).
GetErrorMode
Syntax:
SI32 pdfGetErrorMode(
const PPDF* IPDF) // Instance pointer
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
// 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.
 

Previous topic: GetEMFPatternDistance, GetErrLogMessage

Next topic: GetField (obsolete)

Start Chat