org.foray.pdf.object
Class PDFFontFileStream
java.lang.Object
org.foray.pdf.object.PDFObject
org.foray.pdf.object.PDFStream
org.foray.pdf.object.PDFFontFileStream
public class PDFFontFileStream
- extends PDFStream
Specialized PDFStream
for a PDF Font file.
Method Summary |
protected void |
finalizeStreamContent()
This method is an explicit opportunity for subclasses to finish writing
whatever content may still need to be written to the stream before the
dictionary and stream contents are written. |
protected String |
specialStreamDictEntries()
Subclasses return any specialized dictionary entries here, so that they
are included when writing the stream dictionary. |
Methods inherited from class org.foray.pdf.object.PDFStream |
add, addDefaultFilters, addEncryption, addFilter, addFilter, applyFilters, getDataLength, getOutputStream, output, outputStreamData, setData, setOutputStream, toPDF |
Methods inherited from class org.foray.pdf.object.PDFObject |
bufferToByteArray, byteArrayToStream, getCharsPerLine, getGeneration, getLogger, getNumber, getPDFDocument, pdfID, pdfReference, setNumber, stringToByteArray |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PDFFontFileStream
public PDFFontFileStream(PDFDocument doc,
org.axsl.font.FontUse font)
throws org.axsl.pdf.PdfException
- Constructor.
- Parameters:
doc
- The parent PDF document.font
- The font to be written into the stream.
- Throws:
org.axsl.pdf.PdfException
- If the font is not embeddable.
finalizeStreamContent
protected void finalizeStreamContent()
throws org.axsl.pdf.PdfException
- Description copied from class:
PDFStream
- This method is an explicit opportunity for subclasses to finish writing
whatever content may still need to be written to the stream before the
dictionary and stream contents are written.
- Specified by:
finalizeStreamContent
in class PDFStream
- Throws:
org.axsl.pdf.PdfException
- For errors writing stream content.
specialStreamDictEntries
protected String specialStreamDictEntries()
- Description copied from class:
PDFStream
- Subclasses return any specialized dictionary entries here, so that they
are included when writing the stream dictionary.
- Specified by:
specialStreamDictEntries
in class PDFStream
- Returns:
- Any specialized dictionary entries.
Copyright © 2017. All rights reserved.