Interface ResourceProvider

All Known Implementing Classes:
OpenPdfResources

public interface ResourceProvider
Supplies the resources OpenPDF needs (AFM font metrics, glyph list, messages) when there is no class loader to find them, for instance in a native executable. Install it with BaseFont.setResourceProvider(ResourceProvider).
  • Method Summary

    Modifier and Type
    Method
    Description
    open(String name)
     
  • Method Details

    • open

      InputStream open(String name) throws IOException
      Parameters:
      name - the resource name, without leading slash, for instance org/openpdf/text/pdf/fonts/Helvetica.afm
      Returns:
      the content, or null if the resource is unknown
      Throws:
      IOException - on error