Vanilla.PDF  1.5.1
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_GetType(CharacterMapHandle* handle, CharacterMapType* result);
77 
81  VANILLAPDF_API error_type CALLING_CONVENTION CharacterMap_ToUnicode(CharacterMapHandle* handle, UnicodeCharacterMapHandle** result);
82 
86  VANILLAPDF_API error_type CALLING_CONVENTION CharacterMap_ToEmbedded(CharacterMapHandle* handle, EmbeddedCharacterMapHandle** 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_Release(UnicodeCharacterMapHandle* handle);
113 
124  VANILLAPDF_API error_type CALLING_CONVENTION EmbeddedCharacterMap_Release(EmbeddedCharacterMapHandle* handle);
125 
128 #ifdef __cplusplus
129 };
130 #endif
131 
132 #endif /* _C_CHARACTER_MAP_H */
Definition: c_character_map.h:59
error_type CharacterMap_ToUnicode(CharacterMapHandle *handle, UnicodeCharacterMapHandle **result)
Reinterpret current object as UnicodeCharacterMapHandle.
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 CharacterMap_GetType(CharacterMapHandle *handle, CharacterMapType *result)
Get derived type of current object.
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
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...
error_type CharacterMap_ToEmbedded(CharacterMapHandle *handle, EmbeddedCharacterMapHandle **result)
Reinterpret current object as EmbeddedCharacterMapHandle.
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.
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.
error_type UnicodeCharacterMap_GetMappedValue(UnicodeCharacterMapHandle *handle, BufferHandle *key_handle, BufferHandle **result)
Get unicode representation of key key_handle.