public String ToUnicodeString()
{
if (encoding != null && encoding.Length != 0)
return value;
GetBytes();
if (bytes.Length >= 2 && bytes[0] == (byte)254 && bytes[1] == (byte)255)
return PdfEncodings.ConvertToString(bytes, PdfObject.TEXT_UNICODE);
else
return PdfEncodings.ConvertToString(bytes, PdfObject.TEXT_PDFDOCENCODING);
}