Class BaseFont.StreamFont
- java.lang.Object
-
- com.gitlab.pdftk_java.com.lowagie.text.pdf.PdfObject
-
- com.gitlab.pdftk_java.com.lowagie.text.pdf.PdfDictionary
-
- com.gitlab.pdftk_java.com.lowagie.text.pdf.PdfStream
-
- com.gitlab.pdftk_java.com.lowagie.text.pdf.BaseFont.StreamFont
-
-
Field Summary
-
Fields inherited from class com.gitlab.pdftk_java.com.lowagie.text.pdf.PdfStream
BEST_COMPRESSION, BEST_SPEED, compressed, compressionLevel, DEFAULT_COMPRESSION, ENDSTREAM, inputStream, inputStreamLength, NO_COMPRESSION, rawLength, ref, SIZESTREAM, STARTSTREAM, streamBytes, writer
-
-
Constructor Summary
Constructors Constructor Description StreamFont(byte[] contents, int[] lengths)
Generates the PDF stream with the Type1 and Truetype fonts returning a PdfStream.StreamFont(byte[] contents, java.lang.String subType)
Generates the PDF stream for a font.
-
Method Summary
-
Methods inherited from class com.gitlab.pdftk_java.com.lowagie.text.pdf.PdfStream
flateCompress, flateCompress, getRawLength, superToPdf, toPdf, toString, writeContent, writeLength
-
Methods inherited from class com.gitlab.pdftk_java.com.lowagie.text.pdf.PdfDictionary
contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isDictionaryType, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putDel, putEx, remove, size
-
Methods inherited from class com.gitlab.pdftk_java.com.lowagie.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
-
-
-
Constructor Detail
-
StreamFont
public StreamFont(byte[] contents, int[] lengths) throws DocumentException
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 font- Throws:
DocumentException
- error in the stream compression
-
StreamFont
public StreamFont(byte[] contents, java.lang.String subType) throws DocumentException
Generates the PDF stream for a font.- Parameters:
contents
- the content of a streamsubType
- the subtype of the font.- Throws:
DocumentException
-
-