Class AbstractCMap

java.lang.Object
com.itextpdf.io.font.cmap.AbstractCMap
Direct Known Subclasses:
CMapByteCid, CMapCidToCodepoint, CMapCidUni, CMapCodepointToCid, CMapToUnicode, CMapUniCid

public abstract class AbstractCMap extends Object
Class containing base CMap functionality
  • Constructor Details

    • AbstractCMap

      public AbstractCMap()
  • Method Details

    • getName

      public String getName()
      Gets cmap table name.
      Returns:
      table name
    • getOrdering

      public String getOrdering()
      Gets string that uniquely names the character collection within the specified registry.
      Returns:
      character collection name
    • getRegistry

      public String 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

      public static byte[] decodeStringToByte (String range)
      Converts given string to a byte array.
      Parameters:
      range - string to convert
      Returns:
      byte array representation of the provided string
    • toUnicodeString

      protected String toUnicodeString (String value, boolean isHexWriting)
      Converts string in pdf encoding to string in unicode encoding.
      Parameters:
      value - string in pdf encoding (Either PdfEncodings.UNICODE_BIG_UNMARKED, PdfEncodings.UNICODE_BIG, PdfEncodings.PDF_DOC_ENCODING)
      isHexWriting - marker if string is hex encoded
      Returns:
      string in unicode encoding