Class CMapManager

java.lang.Object
org.sejda.sambox.pdmodel.font.CMapManager

public final class CMapManager extends Object
CMap resource loader and cache.
  • Method Details

    • getPredefinedCMap

      public static org.apache.fontbox.cmap.CMap getPredefinedCMap(String cMapName) throws IOException
      Fetches the predefined CMap from disk (or cache).
      Parameters:
      cMapName - CMap name
      Returns:
      The predefined CMap, never null.
      Throws:
      IOException
    • parseCMap

      public static org.apache.fontbox.cmap.CMap parseCMap(InputStream cMapStream) throws IOException
      Parse the given CMap.
      Parameters:
      cMapStream - the CMap to be read
      Returns:
      the parsed CMap
      Throws:
      IOException