Class GFPDFont

All Implemented Interfaces:
Object, PDFont, PDObject, PDResource
Direct Known Subclasses:
GFPDCIDFont, GFPDEmptyFont, GFPDSimpleFont, GFPDType0Font

public class GFPDFont extends GFPDResource implements PDFont
Instance of this class represent PDF font dictionary.
Author:
Sergey Shemyakov
  • Field Details

  • Constructor Details

  • Method Details

    • getType

      public String getType()
      Description copied from interface: PDFont
      font type (Type entry)
      Specified by:
      getType in interface PDFont
      Returns:
      font type (Type entry).
    • getSubtype

      public String getSubtype()
      Description copied from interface: PDFont
      font subtype (Subtype entry)
      Specified by:
      getSubtype in interface PDFont
      Returns:
      font subtype (Subtype entry).
    • getfontName

      public String getfontName()
      Description copied from interface: PDFont
      font name defined by BaseFont entry in the font dictionary and FontName key in the font descriptor
      Specified by:
      getfontName in interface PDFont
      Returns:
      font name defined by BaseFont entry in the font dictionary and FontName key in the font descriptor.
    • getisSymbolic

      public Boolean getisSymbolic()
      Description copied from interface: PDFont
      true if the font flags in the font descriptor dictionary mark indicate that the font is symbolic (the entry /Flags has bit 3 set to 1 and bit 6 set to 0)
      Specified by:
      getisSymbolic in interface PDFont
      Returns:
      true if the font flags in the font descriptor dictionary mark indicate that the font is symbolic (the entry /Flags has bit 3 set to 1 and bit 6 set to 0).
    • getrenderingMode

      public Long getrenderingMode()
      Description copied from interface: PDFont
      rendering mode value
      Specified by:
      getrenderingMode in interface PDFont
      Returns:
      rendering mode value.
    • getfontFileSubtype

      public String getfontFileSubtype()
      Description copied from interface: PDFont
      value of the entry /Subtype in the embedded font file stream, or null, if the this entry is not present (or the font is not embedded)
      Specified by:
      getfontFileSubtype in interface PDFont
    • getisItalic

      public Boolean getisItalic()
      Description copied from interface: PDFont
      value of Italic flag in Flags entry in the font descriptor
      Specified by:
      getisItalic in interface PDFont
    • getLinkedObjects

      public List<? extends Object> getLinkedObjects(String link)
      Specified by:
      getLinkedObjects in interface Object
      Overrides:
      getLinkedObjects in class GenericModelObject
      Parameters:
      link - - the name of a link
      Returns:
      List of objects with the given link
    • isFontProgramParsed

      public boolean isFontProgramParsed()
    • getEncodingMapping

      public Encoding getEncodingMapping()