DynaPDF Manual - Page 252
Previous Page 251 Index Next Page 253

Function Reference
Page 252 of 874
cp860,
// DOS Portuguese
cp861,
// DOS Icelandic
cp862,
// DOS Hebrew
cp863,
// DOS French (Canada)
cp864,
// DOS Arabic
cp865,
// DOS Nordic
cp866,
// DOS Russian
cp869,
// DOS Modern Greek
cp874,
// DOS Thai
cpUnicode,
// We convert to Unicode -> NOT ALLOWED!
cpCJK_Big5_Uni,
// Big5 plus HKSCS extension
cpCJK_EUC_JP_Uni,
// EUC-JP
cpCJK_EUC_KR_Uni,
// EUC-KR
cpCJK_EUC_TW_Uni,
// CNS-11643-1992 (Planes 1-15)
cpCJK_GBK_Uni,
// MS code page 936 (GB2312, EUC-CN plus GBK)
cpCJK_GB12345_Uni, // GB-12345-1990 (Trad. Chinese form of GB-2312)
cpCJK_HZ_Uni,
// Mixed ASCII / GB-2312 encoding
cpCJK_2022_CN_Uni, // ISO-2022-CN-EXT (GB-2312 plus ISO-11643)
cpCJK_2022_JP_Uni, // ISO-2022-JP
cpCJK_2022_KR_Uni, // ISO-2022-KR
cpCJK_646_CN_Uni,
// ISO-646-CN (GB-1988-80)
cpCJK_646_JP_Uni,
// ISO-646-JP (JIS_C6220-1969-RO)
cpCJK_IR_165_Uni,
// ISO-IR-165 (extended version of GB-2312)
cpCJK_932_Uni,
// Microsoft extended version of SHIFT_JIS
cpCJK_949_Uni,
// EUC-KR extended with UHC (Unified Hangul Codes)
cpCJK_950_Uni,
// Microsoft extended version of Big5
cpCJK_JOHAB_Uni,
// JOHAB
// These are character sets, not code pages. The character sets can
// not be used for Unicode conversion.
cpShiftJIS,
// Use cpCJK_932_Uni or cpCJK_EUC_JP_Uni instead.
cpBig5,
// Use cpCJK_Big5_Uni instead.
cpGB2312,
// Use cpCJK_GBK_Uni instead.
cpWansung,
// Use cpCJK_949_Uni or cpCJK_JOHAB_Uni instead.
cpJohab
// Use cpCJK_JOHAB_Uni instead.
cpMacRoman
// Mac Roman encoding
}
This function converts a string of a specific 8 bit or CJK encoding to Unicode. It can be used
especially to convert strings for use with bookmarks or other global objects such as text annotations
and so on which do not support 8 bit encodings but Unicode.
The function can be used multiple times without causing a memory leak. The internal used
conversion buffer is freed automatically before the function is executed. However, the buffer can be
freed manually with the function FreeUniBuf().
Remarks:
This function depends not on an open PDF file; it can be used at any time. The conversion
algorithms are binary save but because no string length is used the string must not contain null
characters (except to terminate the string). No error messages are displayed if this function fails.
Previous topic: ConvToUnicode
Next topic: CopyChoiceValues