Class CMapLocationResource

java.lang.Object
com.itextpdf.io.font.cmap.CMapLocationResource
All Implemented Interfaces:
ICMapLocation

public class CMapLocationResource extends Object implements ICMapLocation
Locates CMap programs in the bundled font resources.
  • Constructor Details

    • CMapLocationResource

      public CMapLocationResource()
  • Method Details

    • getLocation

      public PdfTokenizer getLocation (String location) throws IOException
      Opens a tokenizer for a bundled CMap resource.
      Specified by:
      getLocation in interface ICMapLocation
      Parameters:
      location - the CMap resource name relative to getLocationPath()
      Returns:
      a tokenizer for the requested resource
      Throws:
      IOException - if the resource cannot be found or opened
    • getLocationPath

      public String getLocationPath()
      Retrieve base folder path where CMaps are located.
      Returns:
      CMaps location path.