Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

Error Code defines which are used in PdfError to describe the error.

If you add an error code to this enum, please also add it to PdfError::ErrorName and PdfError::ErrorMessage.

See also:
PdfError
Enumerator:
ePdfError_ErrOk 

The default value indicating no error.

ePdfError_TestFailed 

Used in PoDoFo tests, to indicate that a test failed for some reason.

ePdfError_InvalidHandle 

Null pointer was passed, but null pointer is not allowed.

ePdfError_FileNotFound 

A file was not found or cannot be opened.

ePdfError_InvalidDeviceOperation 

Tried to do something unsupported to an I/O device like seek a non-seekable input device

ePdfError_UnexpectedEOF 

End of file was reached but data was expected.

ePdfError_OutOfMemory 

Not enough memory to complete an operation.

ePdfError_ValueOutOfRange 

The specified memory is out of the allowed range.

ePdfError_InternalLogic 

An internal sanity check or assertion failed.

ePdfError_InvalidEnumValue 

An invalid enum value was specified.

ePdfError_PageNotFound 

The requested page could not be found in the PDF.

ePdfError_NoPdfFile 

The file is no PDF file.

ePdfError_NoXRef 

The PDF file has no or an invalid XRef table.

ePdfError_NoTrailer 

The PDF file has no or an invalid trailer.

ePdfError_NoNumber 

A number was expected in the PDF file, but the read string is no number.

ePdfError_NoObject 

A object was expected and non was found.

ePdfError_NoEOFToken 

The PDF file has no or an invalid EOF marker.

ePdfError_InvalidTrailerSize 

The trailer size is invalid.

ePdfError_InvalidLinearization 

The linearization directory of a web-optimized PDF file is invalid.

ePdfError_InvalidDataType 

The passed datatype is invalid or was not recognized

ePdfError_InvalidXRef 

The XRef table is invalid

ePdfError_InvalidXRefStream 

A XRef steam is invalid

ePdfError_InvalidXRefType 

The XRef type is invalid or was not found

ePdfError_InvalidPredictor 

Invalid or unimplemented predictor

ePdfError_InvalidStrokeStyle 

Invalid stroke style during drawing

ePdfError_InvalidHexString 

Invalid hex string

ePdfError_InvalidStream 

The stream is invalid

ePdfError_InvalidStreamLength 

The stream length is invlaid

ePdfError_InvalidKey 

The specified key is invalid

ePdfError_InvalidName 

The specified Name is not valid in this context

ePdfError_InvalidEncryptionDict 

The encryption dictionary is invalid or misses a required key

ePdfError_InvalidPassword 

The password used to open the PDF file was invalid

ePdfError_InvalidFontFile 

The font file is invalid

ePdfError_InvalidContentStream 

The content stream is invalid due to mismatched context pairing or other problems

ePdfError_UnsupportedFilter 

The requested filter is not yet implemented.

ePdfError_UnsupportedFontFormat 

This font format is not supported by PoDoFO.

ePdfError_ActionAlreadyPresent 

An Action was already present when trying to add a Destination

ePdfError_WrongDestinationType 

The requested field is not available for the given destination type

ePdfError_MissingEndStream 

The required token endstream was not found.

ePdfError_Date 

Date/time error

ePdfError_Flate 

Error in zlib

ePdfError_FreeType 

Error in FreeType

ePdfError_SignatureError 

Error in signature

ePdfError_MutexError 

Error during a mutex operation

ePdfError_UnsupportedImageFormat 

This image format is not supported by PoDoFO.

ePdfError_CannotConvertColor 

This color format cannot be converted.

ePdfError_NotImplemented 

This feature is currently not implemented.

ePdfError_DestinationAlreadyPresent 

An destination was already present when trying to add a Action

ePdfError_ChangeOnImmutable 

Changing values on immutable objects is not allowed.

ePdfError_Unknown 

Unknown error

Definition at line 49 of file PdfError.h.

               {
    ePdfError_ErrOk = 0,                /**< The default value indicating no error. */

    ePdfError_TestFailed,               /**< Used in PoDoFo tests, to indicate that a test failed for some reason. */

    ePdfError_InvalidHandle,            /**< Null pointer was passed, but null pointer is not allowed. */
    ePdfError_FileNotFound,             /**< A file was not found or cannot be opened. */
    ePdfError_InvalidDeviceOperation,     /**< Tried to do something unsupported to an I/O device like seek a non-seekable input device */
    ePdfError_UnexpectedEOF,            /**< End of file was reached but data was expected. */
    ePdfError_OutOfMemory,              /**< Not enough memory to complete an operation. */
    ePdfError_ValueOutOfRange,          /**< The specified memory is out of the allowed range. */
    ePdfError_InternalLogic,            /**< An internal sanity check or assertion failed. */ 
    ePdfError_InvalidEnumValue,         /**< An invalid enum value was specified. */

    ePdfError_PageNotFound,             /**< The requested page could not be found in the PDF. */

    ePdfError_NoPdfFile,                /**< The file is no PDF file. */
    ePdfError_NoXRef,                   /**< The PDF file has no or an invalid XRef table. */
    ePdfError_NoTrailer,                /**< The PDF file has no or an invalid trailer. */
    ePdfError_NoNumber,                 /**< A number was expected in the PDF file, but the read string is no number. */
    ePdfError_NoObject,                 /**< A object was expected and non was found. */
    ePdfError_NoEOFToken,               /**< The PDF file has no or an invalid EOF marker. */

    ePdfError_InvalidTrailerSize,       /**< The trailer size is invalid. */
    ePdfError_InvalidLinearization,     /**< The linearization directory of a web-optimized PDF file is invalid. */
    ePdfError_InvalidDataType,          /**< The passed datatype is invalid or was not recognized */
    ePdfError_InvalidXRef,              /**< The XRef table is invalid */
    ePdfError_InvalidXRefStream,        /**< A XRef steam is invalid */
    ePdfError_InvalidXRefType,          /**< The XRef type is invalid or was not found */
    ePdfError_InvalidPredictor,         /**< Invalid or unimplemented predictor */
    ePdfError_InvalidStrokeStyle,       /**< Invalid stroke style during drawing */
    ePdfError_InvalidHexString,         /**< Invalid hex string */
    ePdfError_InvalidStream,            /**< The stream is invalid */
    ePdfError_InvalidStreamLength,      /**< The stream length is invlaid */
    ePdfError_InvalidKey,               /**< The specified key is invalid */
    ePdfError_InvalidName,              /**< The specified Name is not valid in this context */
    ePdfError_InvalidEncryptionDict,    /**< The encryption dictionary is invalid or misses a required key */
    ePdfError_InvalidPassword,          /**< The password used to open the PDF file was invalid */
    ePdfError_InvalidFontFile,          /**< The font file is invalid */
    ePdfError_InvalidContentStream,     /**< The content stream is invalid due to mismatched context pairing or other problems */

    ePdfError_UnsupportedFilter,        /**< The requested filter is not yet implemented. */
    ePdfError_UnsupportedFontFormat,    /**< This font format is not supported by PoDoFO. */
    ePdfError_ActionAlreadyPresent,     /**< An Action was already present when trying to add a Destination */
    ePdfError_WrongDestinationType,     /**< The requested field is not available for the given destination type */

    ePdfError_MissingEndStream,         /**< The required token endstream was not found. */
    ePdfError_Date,                     /**< Date/time error */
    ePdfError_Flate,                    /**< Error in zlib */
    ePdfError_FreeType,                 /**< Error in FreeType */
    ePdfError_SignatureError,           /**< Error in signature */

    ePdfError_MutexError,               /**< Error during a mutex operation */

    ePdfError_UnsupportedImageFormat,   /**< This image format is not supported by PoDoFO. */
    ePdfError_CannotConvertColor,       /**< This color format cannot be converted. */

    ePdfError_NotImplemented,           /**< This feature is currently not implemented. */

    ePdfError_DestinationAlreadyPresent,/**< An destination was already present when trying to add a Action */
    ePdfError_ChangeOnImmutable,        /**< Changing values on immutable objects is not allowed. */

    ePdfError_Unknown = 0xffff          /**< Unknown error */
};

Generated by  Doxygen 1.6.0   Back to index