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_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 VANILLAPDF_DEPRECATED VANILLAPDF_API error_type CALLING_CONVENTION ContentObject_ToInlineImage(ContentObjectHandle* handle, ContentObjectInlineImageHandle** result);
79
83 VANILLAPDF_API error_type CALLING_CONVENTION ContentObject_ToInstruction(ContentObjectHandle* handle, ContentInstructionHandle** result);
84
88 VANILLAPDF_API error_type CALLING_CONVENTION ContentObject_FromInstruction(ContentInstructionHandle* handle, ContentObjectHandle** result);
89
94 VANILLAPDF_API error_type CALLING_CONVENTION ContentObject_Release(ContentObjectHandle* handle);
95
106 VANILLAPDF_API error_type CALLING_CONVENTION ContentObjectText_GetOperationsSize(ContentObjectTextHandle* handle, size_type* result);
107
112
117
122
127 VANILLAPDF_API error_type CALLING_CONVENTION ContentObjectText_Release(ContentObjectTextHandle* handle);
128
140
145
150
155
161
165#ifdef __cplusplus
166};
167#endif
168
169#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_GetObjectType(ContentObjectHandle *handle, ContentObjectType *result)
Get derived type of current object.
VANILLAPDF_DEPRECATED error_type CALLING_CONVENTION ContentObject_ToInlineImage(ContentObjectHandle *handle, ContentObjectInlineImageHandle **result)
Reinterpret current object as ContentObjectInlineImageHandle.
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_FromContentObject(ContentObjectHandle *handle, ContentObjectInlineImageHandle **result)
Convert ContentObjectHandle to ContentObjectInlineImageHandle.
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.
error_type CALLING_CONVENTION ContentObjectInlineImage_ToContentObject(ContentObjectInlineImageHandle *handle, ContentObjectHandle **result)
Reinterpret current object as ContentObjectHandle.
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