Class BaseFont.StreamFont
java.lang.Object
com.lowagie.text.pdf.PdfObject
com.lowagie.text.pdf.PdfDictionary
com.lowagie.text.pdf.PdfStream
com.lowagie.text.pdf.BaseFont.StreamFont
- Enclosing class:
BaseFont
Generates the PDF stream with the Type1 and Truetype fonts returning a PdfStream.
-
Field Summary
Fields inherited from class PdfStream
BEST_COMPRESSION, BEST_SPEED, compressed, compressionLevel, DEFAULT_COMPRESSION, ENDSTREAM, inputStream, inputStreamLength, NO_COMPRESSION, rawLength, ref, SIZESTREAM, STARTSTREAM, streamBytes, writer -
Constructor Summary
ConstructorsConstructorDescriptionStreamFont(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. -
Method Summary
Methods inherited from class PdfStream
flateCompress, flateCompress, getRawLength, superToPdf, toPdf, toString, writeContent, writeLengthMethods inherited from class PdfDictionary
clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, getKeysAndValues, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, sizeMethods inherited from class PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
Constructor Details
-
StreamFont
Generates the PDF stream with the Type1 and Truetype fonts returning a PdfStream.- Parameters:
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 Stream- Throws:
DocumentException- error in the stream compression- Since:
- 2.1.3 (replaces the constructor without param compressionLevel)
-
StreamFont
Generates the PDF stream for a font.- Parameters:
contents- the content of a streamsubType- 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)
-