Class CMapByteCid

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

public class CMapByteCid extends AbstractCMap
Maps variable-length character codes to CID values.
  • Constructor Details

    • CMapByteCid

      public CMapByteCid()
      Creates an empty byte code to CID map.
  • Method Details

    • decodeSequence

      public String decodeSequence (byte[] cidBytes, int offset, int length)
      Decode byte sequence.
      Parameters:
      cidBytes - byteCodeBytes
      offset - number of bytes to skip before starting to return chars from the sequence
      length - number of bytes to process
      Returns:
      string that contains decoded representation of the given sequence
    • decodeSingle

      protected int decodeSingle (byte[] cidBytes, CMapByteCid.Cursor cursor)
      Decodes one CID and advances the supplied cursor.
      Parameters:
      cidBytes - the source byte array
      cursor - the mutable segment cursor to advance
      Returns:
      the decoded CID, or -1 when the segment ends before a complete CID