Package com.aowagie.text.pdf
Class BaseFont.StreamFont
java.lang.Object
com.aowagie.text.pdf.PdfObject
com.aowagie.text.pdf.PdfDictionary
com.aowagie.text.pdf.PdfStream
com.aowagie.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 com.aowagie.text.pdf.PdfStream
BEST_COMPRESSION, compressed, compressionLevel, DEFAULT_COMPRESSION, ENDSTREAM, inputStream, inputStreamLength, NO_COMPRESSION, rawLength, STARTSTREAM, streamBytes
Fields inherited from class com.aowagie.text.pdf.PdfDictionary
CATALOG, hashMap, OUTLINES, PAGE
Fields inherited from class com.aowagie.text.pdf.PdfObject
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type
-
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 com.aowagie.text.pdf.PdfStream
flateCompress, getRawLength, superToPdf, toPdf, toString, writeContent, writeLength
Methods inherited from class com.aowagie.text.pdf.PdfDictionary
contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, remove, size
Methods inherited from class com.aowagie.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, 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)
-