[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Text.FontType0.TryGetUnicode

TryGetUnicode Method

TryGetUnicode(uint, out string)

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.

Declaration
public override bool TryGetUnicode(uint pdfCode, out string unicode)
Public Overrides Function TryGetUnicode(pdfCode As UInteger, ByRef unicode As String) As Boolean
Parameters
Type Name Description
uint pdfCode

The character PDF code.

string unicode

OUT: The character Unicode.

Returns
Type Description
bool

True if the conversion was successful, false otherwise.

Overrides