org.foray.pdf.object
Class PDFCharProcs

java.lang.Object
  extended by org.foray.pdf.object.PDFObject
      extended by 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.


Field Summary
 
Fields inherited from class org.foray.pdf.object.PDFObject
EOL, MSG_EOL, XREF_EOL
 
Constructor Summary
PDFCharProcs()
          Constructor.
 
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
 

Constructor Detail

PDFCharProcs

public PDFCharProcs()
Constructor.

Method Detail

addCharacter

public void addCharacter(String name,
                         PDFStream stream)
Add a character definition in the dictionary.

Parameters:
name - the character name
stream - 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.