Class BaseFont.StreamFont

Enclosing class:
BaseFont

static class BaseFont.StreamFont extends PdfStream
Generates the PDF stream with the Type1 and Truetype fonts returning a PdfStream.
  • Constructor Details

    • StreamFont

      public StreamFont(byte[] contents, int[] lengths) throws DocumentException
      Generates the PDF stream with the Type1 and Truetype fonts returning a PdfStream.
      Parameters:
      contents - the content of the stream
      lengths - an array of int that describes the several lengths of each part of the font
      Throws:
      DocumentException - error in the stream compression
    • StreamFont

      public StreamFont(byte[] contents, String subType) throws DocumentException
      Generates the PDF stream for a font.
      Parameters:
      contents - the content of a stream
      subType - the subtype of the font.
      Throws:
      DocumentException