Class BaseFont.StreamFont

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    BaseFont

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

      • StreamFont

        public StreamFont​(byte[] contents,
                          int[] lengths,
                          int compressionLevel)
                   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
        compressionLevel - the compression level of the Stream
        Throws:
        DocumentException - error in the stream compression
        Since:
        2.1.3 (replaces the constructor without param compressionLevel)
      • StreamFont

        public StreamFont​(byte[] contents,
                          java.lang.String subType,
                          int compressionLevel)
                   throws DocumentException
        Generates the PDF stream for a font.
        Parameters:
        contents - the content of a stream
        subType - the subtype of the font.
        compressionLevel - the compression level of the Stream
        Throws:
        DocumentException - error in the stream compression
        Since:
        2.1.3 (replaces the constructor without param compressionLevel)