|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFEncoding
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 | |
protected String |
basename
the name for the base encoding. |
protected HashMap |
differences
the differences from the base encoding |
static String |
MacExpertEncoding
the name for the standard encoding scheme |
static String |
MacRomanEncoding
the name for the standard encoding scheme |
static String |
WinAnsiEncoding
the name for the standard encoding scheme |
Fields inherited from class org.apache.fop.pdf.PDFObject |
generation, number |
Constructor Summary | |
PDFEncoding(int number,
String basename)
create the /Encoding object |
Method Summary | |
void |
addDifferences(int code,
ArrayList 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, output, referencePDF |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String MacRomanEncoding
public static final String MacExpertEncoding
public static final String WinAnsiEncoding
protected String basename
protected HashMap differences
Constructor Detail |
public PDFEncoding(int number, String basename)
number
- the object's numberbasename
- the name of the character encoding schemaMethod Detail |
public void addDifferences(int code, ArrayList sequence)
code
- the first index of the sequence to be changedsequence
- the sequence of glyph names (as String)public byte[] toPDF()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |