This documentation is deprecated and will no longer be updated. Please use the official documentation at vanillapdf.readthedocs.io.
Vanilla.PDF  2.3.0
Cross-platform toolkit for creating and modifying PDF documents
c_values.h
Go to the documentation of this file.
1#ifndef _C_VALUES_H
2#define _C_VALUES_H
3
6
12#ifdef __cplusplus
13extern "C"
14{
15#endif
16
30 VANILLAPDF_API extern const boolean_type VANILLAPDF_RV_FALSE;
31
38 VANILLAPDF_API extern const boolean_type VANILLAPDF_RV_TRUE;
39
/* group_boolean_types */
41
47 // global error states
48
53 VANILLAPDF_API extern const error_type VANILLAPDF_ERROR_SUCCESS;
54
59 VANILLAPDF_API extern const error_type VANILLAPDF_ERROR_PARAMETER_VALUE;
60
65 VANILLAPDF_API extern const error_type VANILLAPDF_ERROR_NOT_SUPPORTED;
66
71 VANILLAPDF_API extern const error_type VANILLAPDF_ERROR_USER_CANCELLED;
72
78 VANILLAPDF_DEPRECATED VANILLAPDF_API extern const error_type VANILLAPDF_ERROR_ZLIB_DATA;
79
84 VANILLAPDF_API extern const error_type VANILLAPDF_ERROR_INVALID_LICENSE;
85
90 VANILLAPDF_API extern const error_type VANILLAPDF_ERROR_LICENSE_REQUIRED;
91
96 VANILLAPDF_API extern const error_type VANILLAPDF_ERROR_INSUFFICIENT_SPACE;
97
102 VANILLAPDF_API extern const error_type VANILLAPDF_ERROR_DATA_CORRUPTION;
103
108 VANILLAPDF_API extern const error_type VANILLAPDF_ERROR_IO;
109
114 VANILLAPDF_API extern const error_type VANILLAPDF_ERROR_CRYPTO;
115
120 VANILLAPDF_API extern const error_type VANILLAPDF_ERROR_IMAGE_CODEC;
121
128 VANILLAPDF_API extern const error_type VANILLAPDF_ERROR_GENERAL;
129
130 // syntax errors
131
136 VANILLAPDF_API extern const error_type VANILLAPDF_ERROR_CONVERSION;
137
142 VANILLAPDF_API extern const error_type VANILLAPDF_ERROR_FILE_DISPOSED;
143
150 VANILLAPDF_API extern const error_type VANILLAPDF_ERROR_FILE_NOT_INITIALIZED;
151
159 VANILLAPDF_API extern const error_type VANILLAPDF_ERROR_OBJECT_MISSING;
160
170 VANILLAPDF_API extern const error_type VANILLAPDF_ERROR_PARSE_EXCEPTION;
171
178 VANILLAPDF_API extern const error_type VANILLAPDF_ERROR_INVALID_PASSWORD;
179
184 VANILLAPDF_API extern const error_type VANILLAPDF_ERROR_DUPLICATE_KEY;
185
186 // semantic errors
187
192 VANILLAPDF_API extern const error_type VANILLAPDF_ERROR_OPTIONAL_ENTRY_MISSING;
193
198 VANILLAPDF_API extern const error_type VANILLAPDF_ERROR_SEMANTIC_CONTEXT;
199
/* group_error_types */
201
202#ifdef __cplusplus
203};
204#endif
205
206#endif /* _C_VALUES_H */
This file contains macro declarations for importing and exporting symbols from library boundaries.
This file contains type definitions.
const boolean_type VANILLAPDF_RV_TRUE
Represents the boolean true value.
const boolean_type VANILLAPDF_RV_FALSE
Represents the boolean false value.
const error_type VANILLAPDF_ERROR_INSUFFICIENT_SPACE
The space usually for buffer was not sufficient for requested operation.
const error_type VANILLAPDF_ERROR_OBJECT_MISSING
A dependent object was not found.
const error_type VANILLAPDF_ERROR_DUPLICATE_KEY
Raise when trying to insert already existing key into the dictionary.
const error_type VANILLAPDF_ERROR_LICENSE_REQUIRED
Error accessing licensed feature without a valid license file.
const error_type VANILLAPDF_ERROR_PARAMETER_VALUE
An invalid parameter value to function call was passed.
const error_type VANILLAPDF_ERROR_CRYPTO
A cryptographic operation failed.
const error_type VANILLAPDF_ERROR_SUCCESS
Indicates that the operation completed successfully.
const error_type VANILLAPDF_ERROR_IO
An I/O error occurred during file or stream operations.
const error_type VANILLAPDF_ERROR_GENERAL
An unknown error has occurred.
const error_type VANILLAPDF_ERROR_SEMANTIC_CONTEXT
The underlying type of the object was different than expected.
const error_type VANILLAPDF_ERROR_OPTIONAL_ENTRY_MISSING
The requested object is empty or missing.
const error_type VANILLAPDF_ERROR_PARSE_EXCEPTION
Error during low-level file processing, the document might be damaged.
const error_type VANILLAPDF_ERROR_USER_CANCELLED
Operation was cancelled by user.
const error_type VANILLAPDF_ERROR_DATA_CORRUPTION
Data corruption was detected during processing.
const error_type VANILLAPDF_ERROR_CONVERSION
An invalid object type was passed to function.
const error_type VANILLAPDF_ERROR_INVALID_PASSWORD
Invalid protection password or key.
const error_type VANILLAPDF_ERROR_IMAGE_CODEC
An image encoding or decoding operation failed.
const error_type VANILLAPDF_ERROR_FILE_DISPOSED
The source file was already disposed.
const error_type VANILLAPDF_ERROR_NOT_SUPPORTED
Operation is currently not supported.
const error_type VANILLAPDF_ERROR_INVALID_LICENSE
Presented license file is not valid.
const error_type VANILLAPDF_ERROR_FILE_NOT_INITIALIZED
The source file was not yet initialized.
VANILLAPDF_DEPRECATED const error_type VANILLAPDF_ERROR_ZLIB_DATA
Error in compressed data.
uint32_t error_type
This is return value type of all API functions.
Definition c_types.h:25
int8_t boolean_type
Boolean type supported in C.
Definition c_types.h:31