Beispiel #1
0
 /**
  * <summary>Reads a string from the font file using the specified encoding.</summary>
  */
 private string ReadString(
     int length,
     text::Encoding encoding
     )
 {
     byte[] data = new byte[length];
     FontData.Read(data, 0, length);
     return(encoding.GetString(data));
 }
Beispiel #2
0
 /**
  * <summary>Gets the PDF decoding of the specified data.</summary>
  * <param name="value">Byte array to decode.</param>
  * <returns>Decoded string.</returns>
  */
 public static string Decode(
     byte[] value
     )
 {
     return(ISO88591.GetString(value));
 }