java.lang.Object
org.sejda.sambox.pdmodel.font.encoding.Encoding
org.sejda.sambox.pdmodel.font.encoding.DictionaryEncoding
- All Implemented Interfaces:
COSObjectable
This will perform the encoding from a dictionary.
- Author:
- Ben Litchfield
-
Field Summary
Fields inherited from class org.sejda.sambox.pdmodel.font.encoding.Encoding
CHAR_CODE, CHAR_NAME, codeToName, inverted -
Constructor Summary
ConstructorsConstructorDescriptionDictionaryEncoding(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. -
Method Summary
Modifier and TypeMethodDescriptionReturns the base encoding.Returns the Differences array.Returns the name of this encoding.Methods inherited from class org.sejda.sambox.pdmodel.font.encoding.Encoding
add, contains, contains, getCodeToNameMap, getInstance, getName, getNameToCodeMap, overwrite
-
Constructor Details
-
DictionaryEncoding
Creates a new DictionaryEncoding for embedding. -
DictionaryEncoding
Creates a new DictionaryEncoding for a Type 3 font from a PDF.- Parameters:
fontEncoding- The Type 3 encoding dictionary.
-
DictionaryEncoding
Creates a new DictionaryEncoding from a PDF.- Parameters:
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.
-
-
Method Details
-
getBaseEncoding
Returns the base encoding. Will be null for Type 3 fonts. -
getDifferences
Returns the Differences array. -
getCOSObject
- Returns:
- The
COSBasethat matches this Java object.
-
getEncodingName
Description copied from class:EncodingReturns the name of this encoding.- Specified by:
getEncodingNamein classEncoding
-