Package com.itextpdf.io.font.cmap
Class AbstractCMap
java.lang.Object
com.itextpdf.io.font.cmap.AbstractCMap
- Direct Known Subclasses:
-
CMapByteCid
,CMapCidToCodepoint
,CMapCidUni
,CMapCodepointToCid
,CMapToUnicode
,CMapUniCid
Class containing base CMap functionality
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
decodeStringToByte
(String range) Converts given string to a byte array.getName()
Gets cmap table name.Gets string that uniquely names the character collection within the specified registry.Gets string identifying the issuer of the character collection.int
Gets the supplement number of the character collection.protected String
toUnicodeString
(String value, boolean isHexWriting) Converts string in pdf encoding to string in unicode encoding.
-
Constructor Details
-
AbstractCMap
public AbstractCMap()
-
-
Method Details
-
getName
Gets cmap table name.- Returns:
- table name
-
getOrdering
Gets string that uniquely names the character collection within the specified registry.- Returns:
- character collection name
-
getRegistry
Gets string identifying the issuer of the character collection.- Returns:
- name of the issuer
-
getSupplement
public int getSupplement()Gets the supplement number of the character collection.- Returns:
- supplement number
-
decodeStringToByte
Converts given string to a byte array.- Parameters:
-
range
- string to convert - Returns:
- byte array representation of the provided string
-
toUnicodeString
Converts string in pdf encoding to string in unicode encoding.- Parameters:
-
value
- string in pdf encoding (EitherPdfEncodings.UNICODE_BIG_UNMARKED
,PdfEncodings.UNICODE_BIG
,PdfEncodings.PDF_DOC_ENCODING
) -
isHexWriting
- marker if string is hex encoded - Returns:
- string in unicode encoding
-