Class PDSimpleFont

Direct Known Subclasses:
PDTrueTypeFont, PDType1Font, PDType3Font

public abstract class PDSimpleFont extends PDFont
Represents simple font on pd level (Type1, TrueType, Type3).
Author:
Sergey Shemyakov
  • Constructor Details

    • PDSimpleFont

      public PDSimpleFont(COSDictionary dictionary)
      Constructor from font dictionary.
      Parameters:
      dictionary - is font dictionary for this simple font.
  • Method Details

    • toUnicode

      public String toUnicode(int code)
      This method maps character code to a Unicode value. Firstly it checks toUnicode CMap, then it behaves like described in PDF32000_2008 9.10.2 "Mapping Character Codes to Unicode Values" for simple font.
      Overrides:
      toUnicode in class PDFont
      Parameters:
      code - is code for character.
      Returns:
      Unicode value.