Vanilla.PDF  1.6.0
Cross-platform toolkit for creating and modifying PDF documents
c_object.h
Go to the documentation of this file.
1#ifndef _C_OBJECT_H
2#define _C_OBJECT_H
3
7
8#ifdef __cplusplus
9extern "C"
10{
11#endif
12
29 typedef enum {
30
35
41
47
53
59
65
71
77
83
89
96
105 VANILLAPDF_API error_type CALLING_CONVENTION Object_GetObjectType(ObjectHandle* handle, ObjectType* result);
106
110 VANILLAPDF_API error_type CALLING_CONVENTION Object_TypeName(ObjectType type, string_type* result);
111
115 VANILLAPDF_API error_type CALLING_CONVENTION Object_GetOffset(ObjectHandle* handle, offset_type* result);
116
120 VANILLAPDF_API error_type CALLING_CONVENTION Object_ToString(ObjectHandle* handle, BufferHandle** result);
121
125 VANILLAPDF_API error_type CALLING_CONVENTION Object_ToPdf(ObjectHandle* handle, BufferHandle** result);
126
130 VANILLAPDF_API error_type CALLING_CONVENTION Object_ToUnknown(ObjectHandle* handle, IUnknownHandle** result);
131
135 VANILLAPDF_API error_type CALLING_CONVENTION Object_FromUnknown(IUnknownHandle* handle, ObjectHandle** result);
136
141 VANILLAPDF_API error_type CALLING_CONVENTION Object_Release(ObjectHandle* handle);
142
145#ifdef __cplusplus
146};
147#endif
148
149#endif /* _C_OBJECT_H */
This file contains macro declarations for importing and exporting symbols from library boundaries.
This file contains all type forward declarations returned by the library API.
This file contains types and constants used as parameters or return values.
Represents memory stored data.
Base class for reference counting.
Base class for syntactic tokens.
error_type CALLING_CONVENTION Object_GetObjectType(ObjectHandle *handle, ObjectType *result)
Get derived type of current object.
error_type CALLING_CONVENTION Object_Release(ObjectHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION Object_ToUnknown(ObjectHandle *handle, IUnknownHandle **result)
Reinterpret current object as IUnknownHandle.
error_type CALLING_CONVENTION Object_ToString(ObjectHandle *handle, BufferHandle **result)
Convert to human readable text format.
error_type CALLING_CONVENTION Object_ToPdf(ObjectHandle *handle, BufferHandle **result)
Get a PDF data representation of the current object.
error_type CALLING_CONVENTION Object_FromUnknown(IUnknownHandle *handle, ObjectHandle **result)
Convert IUnknownHandle to ObjectHandle.
error_type CALLING_CONVENTION Object_TypeName(ObjectType type, string_type *result)
Get string representation of object type.
error_type CALLING_CONVENTION Object_GetOffset(ObjectHandle *handle, offset_type *result)
Get input file offset where this object was found.
ObjectType
Derived types of ObjectHandle.
Definition: c_object.h:29
@ ObjectType_Undefined
Undefined unitialized default value, triggers error when used.
Definition: c_object.h:34
@ ObjectType_Stream
Stream object represents compressed data inside document.
Definition: c_object.h:82
@ ObjectType_Array
An array object is a one-dimensional collection of objects arranged sequentially.
Definition: c_object.h:46
@ ObjectType_IndirectReference
Represents reference to another object.
Definition: c_object.h:94
@ ObjectType_Integer
Integer objects represent mathematical integers.
Definition: c_object.h:64
@ ObjectType_Real
Real objects represent mathematical real numbers.
Definition: c_object.h:76
@ ObjectType_Null
The null object has a type and value that are unequal to those of any other object.
Definition: c_object.h:40
@ ObjectType_Dictionary
A dictionary object is an associative table containing pairs of objects.
Definition: c_object.h:58
@ ObjectType_Name
A name object is an atomic symbol uniquely defined by a sequence of characters.
Definition: c_object.h:70
@ ObjectType_Boolean
Boolean objects represent the logical values of true and false.
Definition: c_object.h:52
@ ObjectType_String
Reprsents human readable text.
Definition: c_object.h:88
uint32_t error_type
This is return value type of all API functions.
Definition: c_types.h:25
int64_t offset_type
Offset type compatible with standard IO.
Definition: c_types.h:56
const char * string_type
C-Style string.
Definition: c_types.h:82