DL Logo

PDFont Functions

PDFontXlateToUCSCanRaise

Header: DLExtrasProcs.h:781

Description

Translates a string from whatever encoding the PDFont uses to Unicode encoding. This may raise an error.

Related Methods

Syntax

ASInt32 PDFontXlateToUCSCanRaise(PDFont fontP, ASUns8 *inP, ASInt32 inLen, ASUns8 *outP, ASInt32 outLen);

Parameters

fontP
The font of the input string inP.
inP
A pointer to the string to translate.
inLen
The length of the inP buffer in bytes.
outP
(Filled by the method) A pointer to the translated string. If it is NULL, the method returns the size of the translated string.
outLen
The length of the outP buffer in bytes. If it is 0, the method returns the size of the translated string.

Returns

The number of bytes in the translated string in outP.

Exceptions

An
genErrBadParm can be raised.