com.lowagie.text.pdf

Class BaseFont.StreamFont

static class BaseFont.StreamFont extends PdfStream

Generates the PDF stream with the Type1 and Truetype fonts returning a PdfStream.
Constructor Summary
StreamFont(byte[] contents, int[] lengths, int compressionLevel)
Generates the PDF stream with the Type1 and Truetype fonts returning a PdfStream.
StreamFont(byte[] contents, String subType, int compressionLevel)
Generates the PDF stream for a font.

Constructor Detail

StreamFont

public StreamFont(byte[] contents, int[] lengths, int compressionLevel)
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, String subType, int compressionLevel)
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)