Vanilla.PDF  2.0.0
Cross-platform toolkit for creating and modifying PDF documents
c_content_object.h
Go to the documentation of this file.
1#ifndef _C_CONTENT_OBJECT_H
2#define _C_CONTENT_OBJECT_H
3
7
8#ifdef __cplusplus
9extern "C"
10{
11#endif
12
49 typedef enum {
50 ContentObjectType_Undefined = 0,
56
63
72 VANILLAPDF_API error_type CALLING_CONVENTION ContentObject_GetObjectType(ContentObjectHandle* handle, ContentObjectType* result);
73
78
82 VANILLAPDF_API error_type CALLING_CONVENTION ContentObject_ToInstruction(ContentObjectHandle* handle, ContentInstructionHandle** result);
83
87 VANILLAPDF_API error_type CALLING_CONVENTION ContentObject_FromInstruction(ContentInstructionHandle* handle, ContentObjectHandle** result);
88
93 VANILLAPDF_API error_type CALLING_CONVENTION ContentObject_Release(ContentObjectHandle* handle);
94
105 VANILLAPDF_API error_type CALLING_CONVENTION ContentObjectText_GetOperationsSize(ContentObjectTextHandle* handle, size_type* result);
106
111
116
121
126 VANILLAPDF_API error_type CALLING_CONVENTION ContentObjectText_Release(ContentObjectTextHandle* handle);
127
139
144
150
154#ifdef __cplusplus
155};
156#endif
157
158#endif /* _C_CONTENT_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 all content objects and operations.
A sequence of content instructions grouped within a single object.
error_type CALLING_CONVENTION ContentObject_ToInlineImage(ContentObjectHandle *handle, ContentObjectInlineImageHandle **result)
Reinterpret current object as ContentObjectInlineImageHandle.
error_type CALLING_CONVENTION ContentObject_GetObjectType(ContentObjectHandle *handle, ContentObjectType *result)
Get derived type of current object.
error_type CALLING_CONVENTION ContentObject_FromInstruction(ContentInstructionHandle *handle, ContentObjectHandle **result)
Convert ContentInstructionHandle to ContentObjectHandle.
error_type CALLING_CONVENTION ContentObject_Release(ContentObjectHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION ContentObject_ToInstruction(ContentObjectHandle *handle, ContentInstructionHandle **result)
Reinterpret current object as ContentInstructionHandle.
As an alternative to the image XObjects described in section 8.9.5 - Image Dictionaries,...
error_type CALLING_CONVENTION ContentObjectInlineImage_Release(ContentObjectInlineImageHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION ContentObjectInlineImage_GetDictionary(ContentObjectInlineImageHandle *handle, DictionaryObjectHandle **result)
Get meta-data dictionary for inline image.
error_type CALLING_CONVENTION ContentObjectInlineImage_GetData(ContentObjectInlineImageHandle *handle, BufferHandle **result)
Get raw image data.
A PDF text object consists of operators that may show text strings, move the text position,...
error_type CALLING_CONVENTION ContentObjectText_ToContentObject(ContentObjectTextHandle *handle, ContentObjectHandle **result)
Reinterpret current object as ContentObjectHandle.
error_type CALLING_CONVENTION ContentObjectText_Release(ContentObjectTextHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION ContentObjectText_GetOperationsSize(ContentObjectTextHandle *handle, size_type *result)
Get number of operations within current text object.
error_type CALLING_CONVENTION ContentObjectText_GetOperationAt(ContentObjectTextHandle *handle, size_type at, ContentOperationHandle **result)
Get operation at location at.
error_type CALLING_CONVENTION ContentObjectText_FromContentObject(ContentObjectHandle *handle, ContentObjectTextHandle **result)
Convert ContentObjectTextHandle to ContentObjectHandle.
Atomic operation modifying graphics state parameters.
A dictionary object is an associative table containing pairs of objects.
ContentObjectType
Derived types of ContentObjectHandle.
Definition c_content_object.h:49
@ ContentObjectType_Text
A PDF text object consists of operators that may show text strings, move the text position,...
Definition c_content_object.h:55
@ ContentObjectType_InlineImage
As an alternative to the image XObjects described in section 8.9.5 - Image Dictionaries,...
Definition c_content_object.h:61
uint32_t error_type
This is return value type of all API functions.
Definition c_types.h:25
uint32_t size_type
Size type defined in standard library.
Definition c_types.h:62