Package org.verapdf.pd.font.cmap
Class PDCMap
- java.lang.Object
-
- org.verapdf.pd.PDObject
-
- org.verapdf.pd.font.cmap.PDCMap
-
public class PDCMap extends PDObject
Represents CMap on PD layer.- Author:
- Sergey Shemyakov
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description COSObjectgetcMap()CMapgetCMapFile()protected static StringgetCMapID(COSBase object)StringgetCMapName()StringgetOrdering()StringgetRegistry()LonggetSupplement()COSObjectgetUseCMap()booleanisIdentity()Checks if this cMap is identity.StringtoUnicode(int code)Gets Unicode value for this code.-
Methods inherited from class org.verapdf.pd.PDObject
clear, empty, getBooleanKey, getIntegerKey, getKey, getNameKey, getObject, getRealKey, getStringKey, knownKey, removeKey, setBooleanKey, setIntegerKey, setKey, setNameKey, setObject, setObject, setStringKey, updateFromObject, updateToObject
-
-
-
-
Constructor Detail
-
PDCMap
public PDCMap(COSObject cMap)
Constructor from COSObject.- Parameters:
cMap- is COSStream containing CMap or COSName containing name of predefined CMap.
-
-
Method Detail
-
getCMapName
public String getCMapName()
- Returns:
- name of this CMap.
-
getcMap
public COSObject getcMap()
- Returns:
- COSObject, representing this CMap.
-
getCMapFile
public CMap getCMapFile()
- Returns:
- CMap file object read from stream or loaded from predefined CMap file or null if load failed.
-
getRegistry
public String getRegistry()
- Returns:
- Registry value from CMap CIDSystemInfo dictionary.
-
getOrdering
public String getOrdering()
- Returns:
- Ordering value from CMap CIDSystemInfo dictionary.
-
getSupplement
public Long getSupplement()
- Returns:
- Supplement value from CMap CIDSystemInfo dictionary.
-
getUseCMap
public COSObject getUseCMap()
- Returns:
- COSObject of the referenced cMap.
-
toUnicode
public String toUnicode(int code)
Gets Unicode value for this code.
-
isIdentity
public boolean isIdentity()
Checks if this cMap is identity.
-
-