Class CMapCidToCodepoint

java.lang.Object
com.itextpdf.io.font.cmap.AbstractCMap
com.itextpdf.io.font.cmap.CMapCidToCodepoint

public class CMapCidToCodepoint extends AbstractCMap
Maps character identifiers to their encoded character code byte sequences.
  • Constructor Details

    • CMapCidToCodepoint

      public CMapCidToCodepoint()
  • Method Details

    • lookup

      public byte[] lookup (int cid)
      Looks up the character code assigned to a CID.
      Parameters:
      cid - the character identifier
      Returns:
      the mapped byte sequence, or a shared empty array when no mapping exists
    • getReversMap

      public com.itextpdf.io.util.IntHashtable getReversMap()
      Builds a mapping from integer character codes to CIDs.
      Returns:
      a new reverse mapping
    • getCodeSpaceRanges

      public List getCodeSpaceRanges()
      Returns a list containing sequential pairs of code space beginning and endings: (begincodespacerange1, endcodespacerange1, begincodespacerange2, endcodespacerange1, ...)
      Returns:
      list of byte[] that contain code space ranges