Class CMapEncoding

java.lang.Object
com.itextpdf.io.font.CMapEncoding

public class CMapEncoding extends Object
  • Constructor Details

    • CMapEncoding

      public CMapEncoding (String cmap)
      Parameters:
      cmap - CMap name.
    • CMapEncoding

      public CMapEncoding (String cmap, String uniMap)
      Parameters:
      cmap - CMap name.
      uniMap - CMap to convert Unicode value to CID.
    • CMapEncoding

      public CMapEncoding (String cmap, byte[] cmapBytes)
  • Method Details

    • isDirect

      public boolean isDirect()
    • hasUniMap

      public boolean hasUniMap()
    • getRegistry

      public String getRegistry()
    • getOrdering

      public String getOrdering()
    • getSupplement

      public int getSupplement()
    • getUniMapName

      public String getUniMapName()
    • getCmapName

      public String getCmapName()
    • isBuiltWith

      public boolean isBuiltWith (String cmap)
      Checks whether the CMapEncoding was built with corresponding cmap name.
      Parameters:
      cmap - a CMAP
      Returns:
      true, if the CMapEncoding was built with the cmap. Otherwise false.
    • getCmapBytes

      public byte[] getCmapBytes (int cid)
    • fillCmapBytes

      public int fillCmapBytes (int cid, byte[] array, int offset)
    • fillCmapBytes

      public void fillCmapBytes (int cid, ByteBuffer buffer)
    • getCmapBytesLength

      public int getCmapBytesLength (int cid)
    • getCidCode

      public int getCidCode (int cmapCode)
    • getCodeSpaceRanges

      public List getCodeSpaceRanges()