| | 26 | /// |
| | 27 | /// @brief Defines the possible errors loading a document. |
| | 28 | /// |
| | 29 | /// This enumeration matches the definitions at ErrorCodes.h of Poppler. |
| | 30 | /// |
| | 31 | typedef enum |
| | 32 | { |
| | 33 | /// No error. |
| | 34 | DocumentErrorNone = 0, |
| | 35 | /// Couldn't open the PDF file. |
| | 36 | DocumentErrorOpenFile = 1, |
| | 37 | /// Coudln't read the page catalog. |
| | 38 | DocumentErrorBadCatalog = 2, |
| | 39 | /// PDF file is damaged and couldn't be repaired. |
| | 40 | DocumentErrorDamaged = 3, |
| | 41 | /// The file is encrypted and the password was incorrect |
| | 42 | /// or not supplied. |
| | 43 | DocumentErrorEncrypted = 4, |
| | 44 | /// Nonexistent or invalid highlight file. |
| | 45 | DocumentErrorHighlightFile = 5, |
| | 46 | /// Invalid printer. |
| | 47 | DocumentErrorBadPrinter = 6, |
| | 48 | /// Error during printing. |
| | 49 | DocumentErrorPrinting = 7, |
| | 50 | /// PDF File doesn't allow that operation. |
| | 51 | DocumentErrorPermission = 8, |
| | 52 | /// Invalid page number. |
| | 53 | DocumentErrorBadPageNumber = 9, |
| | 54 | /// File I/O Error. |
| | 55 | DocumentErrorFileIO = 10 |
| | 56 | } DocumentError; |
| | 57 | |