public class PDFTTFStream extends AbstractPDFFontStream
| Constructor and Description |
|---|
PDFTTFStream(int len)
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getSizeHint()
Returns a value that hints at the size of the encoded stream.
|
int |
output(java.io.OutputStream stream)
Overload the base object method so we don't have to copy
byte arrays around so much
Overload the base object method so we don't have to copy
byte arrays around so much
Write the PDF represention of this object
|
protected void |
outputRawStreamData(java.io.OutputStream out)
Sends the raw stream data to the target OutputStream.
|
protected void |
populateStreamDict(java.lang.Object lengthEntry)
Populates the dictionary with all necessary entries for the stream.
|
void |
setData(byte[] data,
int size)
Sets the TrueType font data.
|
getDefaultFilterNameencodeAndWriteStream, encodeStream, get, getChildren, getDictionary, getFilterList, multipleFiltersAllowed, outputStreamData, prepareImplicitFilters, put, registerChildren, setDocument, setupFilterListcontentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF, toPDFStringpublic PDFTTFStream(int len)
len - original lengthprotected int getSizeHint()
throws java.io.IOException
getSizeHint in class AbstractPDFStreamjava.io.IOException - in case of an I/O problempublic int output(java.io.OutputStream stream)
throws java.io.IOException
output in class AbstractPDFStreamstream - the stream to write the PDF tojava.io.IOException - if there is an error writing to the streamprotected void outputRawStreamData(java.io.OutputStream out)
throws java.io.IOException
outputRawStreamData in class AbstractPDFStreamout - OutputStream to write tojava.io.IOException - In case of an I/O problemprotected void populateStreamDict(java.lang.Object lengthEntry)
populateStreamDict in class AbstractPDFStreamlengthEntry - value for the /Length entrypublic void setData(byte[] data,
int size)
throws java.io.IOException
data - the font payloadsize - size of the payloadjava.io.IOException - in case of an I/O problemCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.