multivalent.std.adaptor.pdf
public class Encoding extends Object
Version: $Revision: 1.26 $ $Date: 2003/10/04 22:46:47 $
Method Summary | |
---|---|
static Encoding | getInstance(Dict fontdict, PDFReader pdfr)
Handles built-in encodings (defaults to StandardEncoding), tweaks according to differences if any. |
static String[] | getNameMapping(String encoding)
Returns array such that string at index is name of character of that number. |
String | translate(StringBuffer sb, boolean basetoo)
Return Unicode translation of passed StringBuffer . |
Parameters: font - actual font constructed from same font dictionary. As of this writing, the core 14 fonts aren't bundled in the JAR, so embedded metadata can differ from actual font. The encoding vector for TrueType TeX fonts has to be determined from examination of the actual font.
Parameters: encoding - ISOLatin1Encoding
or StandardEncoding
StringBuffer
.Parameters: basetoo Mutate passed StringBuffer according to differences table, if any, to match Adobe standard encoding.