Package org.openpdf.text.pdf
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
-
Method Details
-
open
- Parameters:
name- the resource name, without leading slash, for instanceorg/openpdf/text/pdf/fonts/Helvetica.afm- Returns:
- the content, or
nullif the resource is unknown - Throws:
IOException- on error
-