Vanilla.PDF  1.4.1
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 
4 #include "vanillapdf/c_export.h"
5 #include "vanillapdf/c_handles.h"
6 #include "vanillapdf/c_values.h"
7 
8 #ifdef __cplusplus
9 extern "C"
10 {
11 #endif
12 
49  typedef enum {
55 
62 
71  VANILLAPDF_API error_type CALLING_CONVENTION ContentObject_GetType(ContentObjectHandle* handle, ContentObjectType* result);
72 
76  VANILLAPDF_API error_type CALLING_CONVENTION ContentObject_ToText(ContentObjectHandle* handle, ContentObjectTextHandle** result);
77 
81  VANILLAPDF_API error_type CALLING_CONVENTION ContentObject_ToInlineImage(ContentObjectHandle* handle, ContentObjectInlineImageHandle** result);
82 
87  VANILLAPDF_API error_type CALLING_CONVENTION ContentObject_Release(ContentObjectHandle* handle);
88 
99  VANILLAPDF_API error_type CALLING_CONVENTION ContentObjectText_GetOperationsSize(ContentObjectTextHandle* handle, size_type* result);
100 
104  VANILLAPDF_API error_type CALLING_CONVENTION ContentObjectText_GetOperationAt(ContentObjectTextHandle* handle, size_type at, ContentOperationHandle** result);
105 
110  VANILLAPDF_API error_type CALLING_CONVENTION ContentObjectText_Release(ContentObjectTextHandle* handle);
111 
123 
127  VANILLAPDF_API error_type CALLING_CONVENTION ContentObjectInlineImage_GetData(ContentObjectInlineImageHandle* handle, BufferHandle** result);
128 
133  VANILLAPDF_API error_type CALLING_CONVENTION ContentObjectInlineImage_Release(ContentObjectInlineImageHandle* handle);
134 
138 #ifdef __cplusplus
139 };
140 #endif
141 
142 #endif /* _C_CONTENT_OBJECT_H */
Composed non-atomic content object.
error_type ContentObject_ToText(ContentObjectHandle *handle, ContentObjectTextHandle **result)
Reinterpret current object as ContentObjectTextHandle.
As an alternative to the image XObjects described in section 8.9.5 - Image Dictionaries, a sampled image may be specified in the form of an inline image.
Definition: c_content_object.h:60
error_type ContentObject_ToInlineImage(ContentObjectHandle *handle, ContentObjectInlineImageHandle **result)
Reinterpret current object as ContentObjectInlineImageHandle.
This file contains all type forward declarations returned by the library API.
ContentObjectType
Available content object types.
Definition: c_content_object.h:49
error_type ContentObjectText_GetOperationAt(ContentObjectTextHandle *handle, size_type at, ContentOperationHandle **result)
Get operation at location at.
uint32_t size_type
Size type defined in standard library.
Definition: c_types.h:62
error_type ContentObject_Release(ContentObjectHandle *handle)
Decrement the internal reference counter.
Represents key-value map.
error_type ContentObjectInlineImage_GetData(ContentObjectInlineImageHandle *handle, BufferHandle **result)
Get raw image data.
error_type ContentObjectInlineImage_GetDictionary(ContentObjectInlineImageHandle *handle, DictionaryObjectHandle **result)
Get meta-data dictionary for inline image.
error_type ContentObjectText_GetOperationsSize(ContentObjectTextHandle *handle, size_type *result)
Return size of a collection.
As an alternative to the image XObjects described in section 8.9.5 - Image Dictionaries, a sampled image may be specified in the form of an inline image.
uint32_t error_type
This is return value type of all API functions.
Definition: c_types.h:25
This file contains macro declarations for importing and exporting symbols from library boundaries...
Atomic content operation.
A PDF text object consists of operators that may show text strings, move the text position...
error_type ContentObjectInlineImage_Release(ContentObjectInlineImageHandle *handle)
Decrement the internal reference counter.
This file contains types and constants used as parameters or return values.
error_type ContentObject_GetType(ContentObjectHandle *handle, ContentObjectType *result)
Get derived type of current object.
Represents memory stored data.
error_type ContentObjectText_Release(ContentObjectTextHandle *handle)
Decrement the internal reference counter.
A PDF text object consists of operators that may show text strings, move the text position...
Definition: c_content_object.h:54