public class DictionaryEncoding extends Encoding
codeToName, inverted
Constructor and Description |
---|
DictionaryEncoding(COSDictionary fontEncoding)
Creates a new DictionaryEncoding for a Type 3 font from a PDF.
|
DictionaryEncoding(COSDictionary fontEncoding,
boolean isNonSymbolic,
Encoding builtIn)
Creates a new DictionaryEncoding from a PDF.
|
DictionaryEncoding(COSName baseEncoding,
COSArray differences)
Creates a new DictionaryEncoding for embedding.
|
Modifier and Type | Method and Description |
---|---|
Encoding |
getBaseEncoding()
Returns the base encoding.
|
COSBase |
getCOSObject()
Convert this standard java object to a COS object.
|
Map<Integer,String> |
getDifferences()
Returns the Differences array.
|
String |
getEncodingName()
Returns the name of this encoding.
|
add, contains, contains, getCodeToNameMap, getInstance, getName, getNameToCodeMap
public DictionaryEncoding(COSName baseEncoding, COSArray differences)
public DictionaryEncoding(COSDictionary fontEncoding)
fontEncoding
- The Type 3 encoding dictionary.public DictionaryEncoding(COSDictionary fontEncoding, boolean isNonSymbolic, Encoding builtIn)
fontEncoding
- The encoding dictionary.isNonSymbolic
- True if the font is non-symbolic. False for Type 3 fonts.builtIn
- The font's built-in encoding. Null for Type 3 fonts.public Encoding getBaseEncoding()
public COSBase getCOSObject()
COSObjectable
public String getEncodingName()
Encoding
getEncodingName
in class Encoding
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.