public class PDFCFFStreamType0C extends AbstractPDFFontStream
Constructor and Description |
---|
PDFCFFStreamType0C(CustomFont font)
Main constructor
|
Modifier and Type | Method and Description |
---|---|
protected int |
getSizeHint()
Returns a value that hints at the size of the encoded stream.
|
protected void |
outputRawStreamData(OutputStream out)
Sends the raw stream data to the target OutputStream.
|
protected void |
populateStreamDict(Object lengthEntry)
Populates the dictionary with all necessary entries for the stream.
|
void |
setData(byte[] data,
int size)
Sets the CFF font data.
|
getDefaultFilterName
encodeAndWriteStream, encodeStream, get, getChildren, getDictionary, getFilterList, multipleFiltersAllowed, output, outputStreamData, prepareImplicitFilters, put, registerChildren, setDocument, setupFilterList, supportsObjectStream
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF, toPDFString
public PDFCFFStreamType0C(CustomFont font)
protected int getSizeHint() throws IOException
AbstractPDFStream
getSizeHint
in class AbstractPDFStream
IOException
- in case of an I/O problemprotected void outputRawStreamData(OutputStream out) throws IOException
outputRawStreamData
in class AbstractPDFStream
out
- OutputStream to write toIOException
- In case of an I/O problemprotected void populateStreamDict(Object lengthEntry)
populateStreamDict
in class AbstractPDFStream
lengthEntry
- value for the /Length entrypublic void setData(byte[] data, int size) throws IOException
data
- the font payloadsize
- size of the payloadIOException
- in case of an I/O problemCopyright © 2025 Apache Software Foundation. All rights reserved.