Class PDTrueTypeFontEmbedder

java.lang.Object
org.sejda.sambox.pdmodel.font.TrueTypeEmbedder
org.sejda.sambox.pdmodel.font.PDTrueTypeFontEmbedder
All Implemented Interfaces:
Subsetter

final class PDTrueTypeFontEmbedder extends TrueTypeEmbedder
Embedded PDTrueTypeFont builder. Helper class to populate a PDTrueTypeFont from a TTF.
  • Field Details

    • fontEncoding

      private final Encoding fontEncoding
  • Constructor Details

    • PDTrueTypeFontEmbedder

      PDTrueTypeFontEmbedder(COSDictionary dict, org.apache.fontbox.ttf.TrueTypeFont ttf, Encoding encoding) throws IOException
      Creates a new TrueType font embedder for the given TTF as a PDTrueTypeFont.
      Parameters:
      dict - Font dictionary
      ttf - TTF font
      encoding - The PostScript encoding vector to be used for embedding.
      Throws:
      IOException - if the TTF could not be read
  • Method Details