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

In This Topic
    TryGetUnicode Method (FontSimple)
    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 Overrides Function TryGetUnicode( _
       ByVal pdfCode As System.UInteger, _
       ByRef unicode As System.String _
    ) As System.Boolean
    public override 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