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)
Generates the PDF stream with the Type1 and Truetype fonts returning a PdfStream.
StreamFont(byte[] contents, String subType)
Generates the PDF stream for a font.

Constructor Detail

StreamFont

public StreamFont(byte[] contents, int[] lengths)
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)
Generates the PDF stream for a font.

Parameters: contents the content of a stream subType the subtype of the font.

Throws: DocumentException