Vanilla.PDF  2.0.0
Cross-platform toolkit for creating and modifying PDF documents
c_object_attributes.h
Go to the documentation of this file.
1#ifndef _C_OBJECT_ATTRIBUTES_H
2#define _C_OBJECT_ATTRIBUTES_H
3
7
8#ifdef __cplusplus
9extern "C"
10{
11#endif
12
44 typedef enum {
45
50 ObjectAttributeType_Empty,
51 ObjectAttributeType_SerializationOverride,
52 ObjectAttributeType_TrackingIdentifier,
53 ObjectAttributeType_ImageMetadata
54
56
82
92
96 VANILLAPDF_API error_type CALLING_CONVENTION BaseObjectAttribute_ToUnknown(BaseObjectAttributeHandle* handle, IUnknownHandle** result);
97
101 VANILLAPDF_API error_type CALLING_CONVENTION BaseObjectAttribute_FromUnknown(IUnknownHandle* handle, BaseObjectAttributeHandle** result);
102
106 VANILLAPDF_API error_type CALLING_CONVENTION BaseObjectAttribute_Release(BaseObjectAttributeHandle* handle);
107
119
124
129
134
139
144
149
154
159
164
169
174
186
191
196
201
206
209#ifdef __cplusplus
210};
211#endif
212
213#endif /* _C_OBJECT_ATTRIBUTES_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.
Base class for representing object attributes that are augumenting specific properties with additiona...
error_type CALLING_CONVENTION BaseObjectAttribute_GetAttributeType(BaseObjectAttributeHandle *handle, ObjectAttributeType *result)
Get derived type of current object attribute.
error_type CALLING_CONVENTION BaseObjectAttribute_FromUnknown(IUnknownHandle *handle, BaseObjectAttributeHandle **result)
Convert IUnknownHandle to BaseObjectAttributeHandle.
error_type CALLING_CONVENTION BaseObjectAttribute_ToUnknown(BaseObjectAttributeHandle *handle, IUnknownHandle **result)
Reinterpret current object as IUnknownHandle.
error_type CALLING_CONVENTION BaseObjectAttribute_Release(BaseObjectAttributeHandle *handle)
Decrement the internal reference counter.
Base class for reference counting.
Attribute object that contains information about image colorspace and components.
error_type CALLING_CONVENTION ImageMetadataObjectAttribute_SetColorComponents(ImageMetadataObjectAttributeHandle *handle, integer_type data)
Set number of color components inside the associated image.
error_type CALLING_CONVENTION ImageMetadataObjectAttribute_SetWidth(ImageMetadataObjectAttributeHandle *handle, integer_type data)
Set image width in pixels.
error_type CALLING_CONVENTION ImageMetadataObjectAttribute_ToBaseAttribute(ImageMetadataObjectAttributeHandle *handle, BaseObjectAttributeHandle **result)
Reinterpret current object as BaseObjectAttributeHandle.
error_type CALLING_CONVENTION ImageMetadataObjectAttribute_Create(ImageMetadataObjectAttributeHandle **result)
Creates a new ImageMetadataObjectAttribute instance.
error_type CALLING_CONVENTION ImageMetadataObjectAttribute_GetColorComponents(ImageMetadataObjectAttributeHandle *handle, integer_type *result)
Get number of color components inside the associated image.
error_type CALLING_CONVENTION ImageMetadataObjectAttribute_FromBaseAttribute(BaseObjectAttributeHandle *handle, ImageMetadataObjectAttributeHandle **result)
Convert BaseObjectAttributeHandle to ImageMetadataObjectAttributeHandle.
error_type CALLING_CONVENTION ImageMetadataObjectAttribute_SetHeight(ImageMetadataObjectAttributeHandle *handle, integer_type data)
Set image height in pixels.
error_type CALLING_CONVENTION ImageMetadataObjectAttribute_GetWidth(ImageMetadataObjectAttributeHandle *handle, integer_type *result)
Get image width in pixels.
error_type CALLING_CONVENTION ImageMetadataObjectAttribute_Release(ImageMetadataObjectAttributeHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION ImageMetadataObjectAttribute_GetHeight(ImageMetadataObjectAttributeHandle *handle, integer_type *result)
Get image height in pixels.
error_type CALLING_CONVENTION ImageMetadataObjectAttribute_GetColorSpace(ImageMetadataObjectAttributeHandle *handle, ImageColorSpaceType *result)
Get color space of the associated image.
error_type CALLING_CONVENTION ImageMetadataObjectAttribute_SetColorSpace(ImageMetadataObjectAttributeHandle *handle, ImageColorSpaceType data)
Set color space of the associated image.
Attribute that modifies the attached object serialization ToPdf.
error_type CALLING_CONVENTION SerializationOverrideObjectAttribute_Create(SerializationOverrideObjectAttributeHandle **result)
Creates a new SerializationOverrideObjectAttribute instance.
error_type CALLING_CONVENTION SerializationOverrideObjectAttribute_FromBaseAttribute(BaseObjectAttributeHandle *handle, SerializationOverrideObjectAttributeHandle **result)
Convert BaseObjectAttributeHandle to SerializationOverrideObjectAttributeHandle.
error_type CALLING_CONVENTION SerializationOverrideObjectAttribute_CreateFromData(string_type data, size_type size, SerializationOverrideObjectAttributeHandle **result)
Creates a new SerializationOverrideObjectAttribute instance with value specified in data and size.
error_type CALLING_CONVENTION SerializationOverrideObjectAttribute_ToBaseAttribute(SerializationOverrideObjectAttributeHandle *handle, BaseObjectAttributeHandle **result)
Reinterpret current object as BaseObjectAttributeHandle.
error_type CALLING_CONVENTION SerializationOverrideObjectAttribute_Release(SerializationOverrideObjectAttributeHandle *handle)
Decrement the internal reference counter.
ImageColorSpaceType
Image color spaces used within ImageMetadataObjectAttributeHandle.
Definition c_object_attributes.h:61
ObjectAttributeType
Derived types of BaseObjectAttributeHandle.
Definition c_object_attributes.h:44
@ ImageColorSpaceType_Undefined
Undefined unitialized default value, triggers error when used.
Definition c_object_attributes.h:65
@ ImageColorSpaceType_CMYK
CMYK (cyan-magenta-yellow-black)
Definition c_object_attributes.h:80
@ ImageColorSpaceType_GRAY
Grayscale (monochrome)
Definition c_object_attributes.h:70
@ ImageColorSpaceType_RGB
RGB (red-green-blue)
Definition c_object_attributes.h:75
@ ObjectAttributeType_Undefined
Undefined unitialized default value, triggers error when used.
Definition c_object_attributes.h:49
uint32_t error_type
This is return value type of all API functions.
Definition c_types.h:25
int32_t integer_type
32-bit signed integer
Definition c_types.h:51
uint32_t size_type
Size type defined in standard library.
Definition c_types.h:62
const char * string_type
C-Style string.
Definition c_types.h:82