Vanilla.PDF  1.4.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 {
54 
61 
70  VANILLAPDF_API error_type CALLING_CONVENTION CharacterMap_GetType(CharacterMapHandle* handle, CharacterMapType* result);
71 
75  VANILLAPDF_API error_type CALLING_CONVENTION CharacterMap_ToUnicode(CharacterMapHandle* handle, UnicodeCharacterMapHandle** result);
76 
80  VANILLAPDF_API error_type CALLING_CONVENTION CharacterMap_ToEmbedded(CharacterMapHandle* handle, EmbeddedCharacterMapHandle** result);
81 
86  VANILLAPDF_API error_type CALLING_CONVENTION CharacterMap_Release(CharacterMapHandle* handle);
87 
98  VANILLAPDF_API error_type CALLING_CONVENTION UnicodeCharacterMap_GetMappedValue(
100  BufferHandle* key_handle,
101  BufferHandle** result);
102 
106  VANILLAPDF_API error_type CALLING_CONVENTION UnicodeCharacterMap_Release(UnicodeCharacterMapHandle* handle);
107 
118  VANILLAPDF_API error_type CALLING_CONVENTION EmbeddedCharacterMap_Release(EmbeddedCharacterMapHandle* handle);
119 
122 #ifdef __cplusplus
123 };
124 #endif
125 
126 #endif /* _C_CHARACTER_MAP_H */
Definition: c_character_map.h:53
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:59
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.