org.foray.pdf.object
Class PDFCharProcs
java.lang.Object
org.foray.pdf.object.PDFObject
org.foray.pdf.object.PDFCharProcs
public class PDFCharProcs
- extends PDFObject
class representing a /CharProcs dictionary for Type3 fonts.
CAUTION: this is not yet fully implemented!!!!!!!
I miss an exemple of how to output this dictionary.
Type3 fonts are specified on page 206 and onwards of the PDF 1.3 spec.
Method Summary |
void |
addCharacter(String name,
PDFStream stream)
Add a character definition in the dictionary. |
String |
toPDF()
Generates the PDF text necessary to represent the object, returning it
as a String. |
Methods inherited from class org.foray.pdf.object.PDFObject |
bufferToByteArray, byteArrayToStream, getCharsPerLine, getGeneration, getLogger, getNumber, getPDFDocument, output, pdfID, pdfReference, setNumber, stringToByteArray |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PDFCharProcs
public PDFCharProcs()
- Constructor.
addCharacter
public void addCharacter(String name,
PDFStream stream)
- Add a character definition in the dictionary.
- Parameters:
name
- the character namestream
- the stream that draws the character
toPDF
public String toPDF()
- Description copied from class:
PDFObject
- Generates the PDF text necessary to represent the object, returning it
as a String.
- Returns:
- The PDF text necessary to represent the object.
Copyright © 2017. All rights reserved.