Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Text Namespace / Font Class / TryGetUnicode Method
The character PDF code.
OUT: The character Unicode.

In This Topic
    TryGetUnicode Method (Font)
    In This Topic
    Converts a character's PDF code to its Unicode value.

    Note that this method can fail if the font does not contain the necessary info for the conversion.

    Note also that this method can be slow as it uses large font tables like /Encoding, /ToUnicode etc., so the returned results better be cached by the caller.

    Syntax
    'Declaration
     
    Public MustOverride Function TryGetUnicode( _
       ByVal pdfCode As System.UInteger, _
       ByRef unicode As System.String _
    ) As System.Boolean
    public abstract System.bool TryGetUnicode( 
       System.uint pdfCode,
       out System.string unicode
    )

    Parameters

    pdfCode
    The character PDF code.
    unicode
    OUT: The character Unicode.

    Return Value

    True if the conversion was successful, false otherwise.
    See Also