1 //========================================================================
5 // Copyright 1996-2003 Glyph & Cog, LLC
7 //========================================================================
9 //========================================================================
11 // Modified under the Poppler project - http://poppler.freedesktop.org
13 // All changes made under the Poppler project to this file are licensed
14 // under GPL version 2 or later
16 // Copyright (C) 2005, 2007 Jeff Muizelaar <jeff@infidigm.net>
17 // Copyright (C) 2005 Albert Astals Cid <aacid@kde.org>
18 // Copyright (C) 2005 Kristian Høgsberg <krh@redhat.com>
19 // Copyright (C) 2013 Adrian Johnson <ajohnson@redneon.com>
20 // Copyright (C) 2014 Fabio D'Urso <fabiodurso@hotmail.it>
22 // To see a description of the changes please see the Changelog file that
23 // came with your tarball or type make ChangeLog if you are building from git
25 //========================================================================
30 #ifdef USE_GCC_PRAGMAS
35 #include "poppler-config.h"
36 #include "goo/gtypes.h"
37 #include "goo/GooString.h"
40 errSyntaxWarning
, // PDF syntax error which can be worked around;
41 // output will probably be correct
42 errSyntaxError
, // PDF syntax error which can be worked around;
43 // output will probably be incorrect
44 errConfig
, // error in Xpdf config info (xpdfrc file, etc.)
45 errCommandLine
, // error in user-supplied parameters, action not
46 // allowed, etc. (only used by command-line tools)
47 errIO
, // error in file I/O
48 errNotAllowed
, // action not allowed by PDF permission bits
49 errUnimplemented
, // unimplemented PDF feature - display will be
51 errInternal
// internal error - malfunction within the Xpdf code
54 extern void setErrorCallback(void (*cbk
)(void *data
, ErrorCategory category
,
55 Goffset pos
, char *msg
),
58 extern void CDECL
error(ErrorCategory category
, Goffset pos
, const char *msg
, ...) GOOSTRING_FORMAT
;