org.apache.fop.pdf

Class PDFCharProcs

Implemented Interfaces:
PDFWritable

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

protected Map
keys
the (character name, drawing stream) pairs for a Type3 font

Fields inherited from class org.apache.fop.pdf.PDFObject

DATE_FORMAT, log

Constructor Summary

PDFCharProcs()
Create a new PDF char proc store.

Method Summary

void
addCharacter(String name, PDFStream stream)
add a character definition in the dictionary
byte[]
toPDF()
not done yet

Methods inherited from class org.apache.fop.pdf.PDFObject

encode, encodeBinaryToHexString, encodeString, encodeText, formatDateTime, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF, toPDFString

Field Details

keys

protected Map keys
the (character name, drawing stream) pairs for a Type3 font

Constructor Details

PDFCharProcs

public PDFCharProcs()
Create a new PDF char proc store.

Method Details

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 byte[] toPDF()
not done yet
Overrides:
toPDF in interface PDFObject
Returns:
the pdf byte array

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.