static class BaseFont.StreamFont extends PdfStream
BEST_COMPRESSION, BEST_SPEED, compressed, compressionLevel, DEFAULT_COMPRESSION, ENDSTREAM, inputStream, inputStreamLength, NO_COMPRESSION, rawLength, ref, SIZESTREAM, STARTSTREAM, streamBytes, writer
Constructor and Description |
---|
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.
|
flateCompress, flateCompress, getRawLength, superToPdf, toPdf, toString, writeContent, writeLength
clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
public StreamFont(byte[] contents, int[] lengths, int compressionLevel) throws DocumentException
contents
- the content of the streamlengths
- an array of int that describes the several lengths of each part of the fontcompressionLevel
- the compression level of the StreamDocumentException
- error in the stream compressionpublic StreamFont(byte[] contents, String subType, int compressionLevel) throws DocumentException
contents
- the content of a streamsubType
- the subtype of the font.compressionLevel
- the compression level of the StreamDocumentException
- error in the stream compressionWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses