typedef
struct
_t_PDSysEncoding
*
PDSysEncoding
;
Create an encoding object from the base name.
Call PDERelease() to dispose of the returned PDSysEncoding object when finished with it.
PDSysEncoding
PDSysEncodingCreateFromBaseName(
IN
ASAtom
baseEncName
,
IN
const
char
*
*
diffEnc
);
baseEncName | IN/OUT The base encoding. See the description of Base Encoding in the Character Encoding section of the ISO 32000-1:2008, Document Management-Portable Document Format-Part 1: PDF 1.7, section 9.6.6, page 262. You can find this document on the web store of the International Standards Organization (ISO).
|
diffEnc | IN/OUT An array of 256
const char * describing the differences from the encoding specified by baseEncName . It may be NULL . |
Create an encoding object from a PDF CMap name.
Call PDERelease() to dispose of the returned PDSysEncoding object when finished with it.
PDSysEncoding
PDSysEncodingCreateFromCMapName(
IN
ASAtom
cmapName
);
cmapName | The CMap name.
|
Creates an encoding object from a given PDF CMap stream.
Call PDERelease
()
to dispose of the returned PDSysEncoding
object when it is no longer needed.
PDSysEncoding
PDSysEncodingCreateFromCMapStream(
IN
CosObj
cmapStream
);
cmapStream | The CMap stream from which to create the encoding object.
|
Create an encoding object from a code page.
Call PDERelease() to dispose of the returned PDSysEncoding object when finished with it.
PDSysEncoding
PDSysEncodingCreateFromCodePage(
IN
ASInt32
codePage
,
IN
ASInt16
wMode
);
codePage | The code page character-mapping construct. See Code Page Values.
|
wMode | 0 for horizontal writing, 1 for vertical writiing. |
0
for horizontal writing and 1
for vertical writing. ASInt16
PDSysEncodingGetWMode(
IN
PDSysEncoding
sysEnc
);
sysEnc | IN/OUT An object of type PDSysEncoding.
|
0
for horizontal writing and 1
for vertical writing. ASBool
PDSysEncodingIsIdentity(
IN
PDSysEncoding
sysEnc
);
sysEnc | IN/OUT An object of type PDSysEncoding.
|
ASBool
PDSysEncodingIsMultiByte(
IN
PDSysEncoding
sysEnc
);
sysEnc | IN/OUT An object of type PDSysEncoding.
|
void
PDSysEncodingSetIsUTF16(
IN
PDSysEncoding
sysEnc
,
IN
ASBool
isUTF16
);
sysEnc | IN/OUT An object of type PDSysEncoding.
|
isUTF16 | A boolean value specifying if the encoding is UTF-16
|