Class GFPDSimpleFont

All Implemented Interfaces:
Object, PDFont, PDObject, PDResource, PDSimpleFont
Direct Known Subclasses:
GFPDTrueTypeFont, GFPDType1Font, GFPDType3Font

public abstract class GFPDSimpleFont extends GFPDFont implements PDSimpleFont
Represents one of the simple font types (Type 1, TrueType, Type 3).
Author:
Sergey Shemyakov
  • Constructor Details

  • Method Details

    • getisStandard

      public abstract Boolean getisStandard()
      Description copied from interface: PDSimpleFont
      true if the font is one of the 14 standard fonts defined in PDF 1.4 Reference
      Specified by:
      getisStandard in interface PDSimpleFont
      Returns:
      true if the font is one of the 14 standard fonts defined in PDF 1.4 Reference.
    • getFirstChar

      public Long getFirstChar()
      Description copied from interface: PDSimpleFont
      FirstChar entry; null if LastChar entry is not present or has invalid type
      Specified by:
      getFirstChar in interface PDSimpleFont
      Returns:
      FirstChar entry; null if LastChar entry is not present or has invalid type.
    • getLastChar

      public Long getLastChar()
      Description copied from interface: PDSimpleFont
      LastChar entry; null if LastChar entry is not present or has invalid type
      Specified by:
      getLastChar in interface PDSimpleFont
      Returns:
      LastChar entry; null if LastChar entry is not present or has invalid type.
    • getWidths_size

      public Long getWidths_size()
      Description copied from interface: PDSimpleFont
      The size of the Widths array; null if the Widths array is not present or has invalid type
      Specified by:
      getWidths_size in interface PDSimpleFont
      Returns:
      The size of the Widths array; null if the Widths array is not present or has invalid type.
    • getEncoding

      public String getEncoding()
      Description copied from interface: PDSimpleFont
      String representation of the font encoding: - null if the /Encoding entry is not present in the font dictionary - if /Encoding entry in the font dictionary if of Name type, then the value of this entry; - if /Encoding entry is a dictionary, which does not contain /Differences array, then the value of /BaseEncoding entry in this dictionary (or null, if /BaseEncoding is also not present)
      Specified by:
      getEncoding in interface PDSimpleFont
      Returns:
      String representation of the font encoding: null if the /Encoding entry is not present in the font dictionary; if /Encoding entry in the font dictionary of Name type, then the value of this entry; if /Encoding entry is a dictionary, which does not contain /Differences array, then the value of /BaseEncoding entry in this dictionary (or null, if /BaseEncoding is also not present);
    • getcontainsDifferences

      public Boolean getcontainsDifferences()
      Description copied from interface: PDSimpleFont
      true if an Encoding dictionary contains a Differences entry
      Specified by:
      getcontainsDifferences in interface PDSimpleFont