Class PDCMap

java.lang.Object
org.verapdf.pd.PDObject
org.verapdf.pd.font.cmap.PDCMap

public class PDCMap extends PDObject
Represents CMap on PD layer.
Author:
Sergey Shemyakov
  • Constructor Details

    • PDCMap

      public PDCMap(COSObject cMap)
      Constructor from COSObject.
      Parameters:
      cMap - is COSStream containing CMap or COSName containing name of predefined CMap.
  • Method Details

    • getCMapName

      public String getCMapName()
      Returns:
      name of this CMap.
    • getCMapID

      protected static String getCMapID(COSBase object)
    • getcMap

      public COSObject getcMap()
      Returns:
      COSObject, representing this CMap.
    • getCMapFile

      public CMap getCMapFile()
      Returns:
      CMap file object read from stream or loaded from predefined CMap file or null if load failed.
    • getRegistry

      public String getRegistry()
      Returns:
      Registry value from CMap CIDSystemInfo dictionary.
    • getOrdering

      public String getOrdering()
      Returns:
      Ordering value from CMap CIDSystemInfo dictionary.
    • getSupplement

      public Long getSupplement()
      Returns:
      Supplement value from CMap CIDSystemInfo dictionary.
    • getUseCMap

      public COSObject getUseCMap()
      Returns:
      COSObject of the referenced cMap.
    • toUnicode

      public String toUnicode(int code)
      Gets Unicode value for this code.
    • isIdentity

      public boolean isIdentity()
      Checks if this cMap is identity.