public class PDFTTFStream extends PDFStream
entries, order
DATE_FORMAT, log
Constructor and Description |
---|
PDFTTFStream(int len)
Main constructor
|
Modifier and Type | Method and Description |
---|---|
protected 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 |
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.
|
add, getBufferOutputStream, getDataLength, getSizeHint, outputRawStreamData, setData
encodeAndWriteStream, encodeStream, getFilterList, outputStreamData, prepareImplicitFilters, setupFilterList
get, put, put, writeDictionary
encode, encodeBinaryToHexString, encodeString, encodeText, formatDateTime, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF, toPDFString
public PDFTTFStream(int len)
len
- original lengthprotected int output(java.io.OutputStream stream) throws java.io.IOException
protected void populateStreamDict(java.lang.Object lengthEntry)
populateStreamDict
in class AbstractPDFStream
lengthEntry
- 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-2008 The Apache Software Foundation. All Rights Reserved.