Vanilla.PDF  1.5.2
Cross-platform toolkit for creating and modifying PDF documents
c_character_map.h
Go to the documentation of this file.
1 #ifndef _C_CHARACTER_MAP_H
2 #define _C_CHARACTER_MAP_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 
48  typedef enum {
49 
54 
60 
67 
76  VANILLAPDF_API error_type CALLING_CONVENTION CharacterMap_GetCharacterMapType(CharacterMapHandle* handle, CharacterMapType* result);
77 
81  VANILLAPDF_API error_type CALLING_CONVENTION CharacterMap_ToUnknown(CharacterMapHandle* handle, IUnknownHandle** result);
82 
86  VANILLAPDF_API error_type CALLING_CONVENTION CharacterMap_FromUnknown(IUnknownHandle* handle, CharacterMapHandle** result);
87 
92  VANILLAPDF_API error_type CALLING_CONVENTION CharacterMap_Release(CharacterMapHandle* handle);
93 
104  VANILLAPDF_API error_type CALLING_CONVENTION UnicodeCharacterMap_GetMappedValue(
106  BufferHandle* key_handle,
107  BufferHandle** result);
108 
112  VANILLAPDF_API error_type CALLING_CONVENTION UnicodeCharacterMap_ToCharacterMap(UnicodeCharacterMapHandle* handle, CharacterMapHandle** result);
113 
117  VANILLAPDF_API error_type CALLING_CONVENTION UnicodeCharacterMap_FromCharacterMap(CharacterMapHandle* handle, UnicodeCharacterMapHandle** result);
118 
122  VANILLAPDF_API error_type CALLING_CONVENTION UnicodeCharacterMap_Release(UnicodeCharacterMapHandle* handle);
123 
134  VANILLAPDF_API error_type CALLING_CONVENTION EmbeddedCharacterMap_ToCharacterMap(EmbeddedCharacterMapHandle* handle, CharacterMapHandle** result);
135 
139  VANILLAPDF_API error_type CALLING_CONVENTION EmbeddedCharacterMap_FromCharacterMap(CharacterMapHandle* handle, EmbeddedCharacterMapHandle** result);
140 
144  VANILLAPDF_API error_type CALLING_CONVENTION EmbeddedCharacterMap_Release(EmbeddedCharacterMapHandle* handle);
145 
148 #ifdef __cplusplus
149 };
150 #endif
151 
152 #endif /* _C_CHARACTER_MAP_H */
Definition: c_character_map.h:59
error_type EmbeddedCharacterMap_FromCharacterMap(CharacterMapHandle *handle, EmbeddedCharacterMapHandle **result)
Convert CharacterMapHandle to EmbeddedCharacterMapHandle.
CharacterMapType
Available types of character maps.
Definition: c_character_map.h:48
error_type UnicodeCharacterMap_Release(UnicodeCharacterMapHandle *handle)
Decrement the internal reference counter.
error_type EmbeddedCharacterMap_ToCharacterMap(EmbeddedCharacterMapHandle *handle, CharacterMapHandle **result)
Reinterpret current object as CharacterMapHandle.
This file contains all type forward declarations returned by the library API.
A CMap shall specify the mapping from character codes to character selectors.
error_type CharacterMap_Release(CharacterMapHandle *handle)
Decrement the internal reference counter.
Definition: c_character_map.h:65
error_type CharacterMap_GetCharacterMapType(CharacterMapHandle *handle, CharacterMapType *result)
Get derived type of current object.
error_type CharacterMap_FromUnknown(IUnknownHandle *handle, CharacterMapHandle **result)
Convert IUnknownHandle to FontHandle.
error_type UnicodeCharacterMap_FromCharacterMap(CharacterMapHandle *handle, UnicodeCharacterMapHandle **result)
Convert CharacterMapHandle to UnicodeCharacterMapHandle.
Undefined unitialized default value, triggers error when used.
Definition: c_character_map.h:53
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...
The Unicode standard defines a system for numbering all of the common characters used in a large numb...
This file contains types and constants used as parameters or return values.
error_type CharacterMap_ToUnknown(CharacterMapHandle *handle, IUnknownHandle **result)
Reinterpret current object as IUnknownHandle.
For character encodings that are not predefined, the PDF file shall contain a stream that defines the...
error_type EmbeddedCharacterMap_Release(EmbeddedCharacterMapHandle *handle)
Decrement the internal reference counter.
Represents memory stored data.
Base class for reference counting.
error_type UnicodeCharacterMap_ToCharacterMap(UnicodeCharacterMapHandle *handle, CharacterMapHandle **result)
Reinterpret current object as CharacterMapHandle.
error_type UnicodeCharacterMap_GetMappedValue(UnicodeCharacterMapHandle *handle, BufferHandle *key_handle, BufferHandle **result)
Get unicode representation of key key_handle.