org.apache.fop.pdf
Class PDFEncoding

org.apache.fop.pdf.PDFObject
  |
  +--org.apache.fop.pdf.PDFEncoding

public class PDFEncoding
extends PDFObject

class representing an /Encoding object. A small object expressing the base encoding name and the differences from the base encoding. The three base encodings are given by their name. Encodings are specified on page 213 and onwards of the PDF 1.3 spec.


Field Summary
 final static StringMacExpertEncoding
          the name for the standard encoding scheme
 final static StringMacRomanEncoding
          the name for the standard encoding scheme
 final static StringWinAnsiEncoding
          the name for the standard encoding scheme

Constructor Summary
PDFEncoding(int number, String basename)
          create the /Encoding object

Method Summary
 voidaddDifferences(int code, Vector sequence)
          add differences to the encoding
 byte[]toPDF()
          produce the PDF representation for the object

Methods inherited from class org.apache.fop.pdf.PDFObject
getNumber, referencePDF

Field Detail

MacExpertEncoding

public final static String MacExpertEncoding
the name for the standard encoding scheme

MacRomanEncoding

public final static String MacRomanEncoding
the name for the standard encoding scheme

WinAnsiEncoding

public final static String WinAnsiEncoding
the name for the standard encoding scheme
Constructor Detail

PDFEncoding

public PDFEncoding(int number, String basename)
create the /Encoding object
Parameters:
number - the object's number
basename - the name of the character encoding schema
Method Detail

addDifferences

public void addDifferences(int code, Vector sequence)
add differences to the encoding
Parameters:
code - the first index of the sequence to be changed
sequence - the sequence of glyph names (as String)

toPDF

public byte[] toPDF()
produce the PDF representation for the object
Returns: the PDF

Association Links

to Class java.lang.String

the name for the standard encoding scheme

to Class java.lang.String

the name for the standard encoding scheme

to Class java.lang.String

the name for the standard encoding scheme

to Class java.lang.String

the name for the base encoding. One of the three base encoding scheme names or the default font's base encoding if null.

to Class java.util.Hashtable

the differences from the base encoding