@Test public void retrieveImageTest() { String fileName = "resourceResolverTest.png"; ResourceResolver resourceResolver = new ResourceResolver(baseUri); PdfImageXObject image = resourceResolver.retrieveImage(fileName); Assert.assertNotNull(image); Assert.assertTrue(image.identifyImageFileExtension().equalsIgnoreCase("png")); }
@Deprecated public PdfImageXObject retrieveImage(String src) { PdfXObject image = retrieveImageExtended(src); if (image instanceof PdfImageXObject) { return (PdfImageXObject) image; } else { return null; } }
ResourceResolver { @Deprecated public PdfImageXObject retrieveImage(String src) { PdfXObject image = retrieveImageExtended(src); if (image instanceof PdfImageXObject) { return (PdfImageXObject) image; } else { return null; } } }
ResourceResolver { @Deprecated public PdfImageXObject retrieveImage(String src) { PdfXObject image = retrieveImageExtended(src); if (image instanceof PdfImageXObject) { return (PdfImageXObject) image; } else { return null; } } ResourceResolver(String baseUri);  ResourceResolver(String baseUri, IResourceRetriever retriever); }
ResourceResolver { @Deprecated public PdfImageXObject retrieveImage(String src) { PdfXObject image = retrieveImageExtended(src); if (image instanceof PdfImageXObject) { return (PdfImageXObject) image; } else { return null; } } ResourceResolver(String baseUri);  ResourceResolver(String baseUri, IResourceRetriever retriever); IResourceRetriever getRetriever(); ResourceResolver setRetriever(IResourceRetriever retriever); @Deprecated PdfImageXObject retrieveImage(String src); PdfXObject retrieveImageExtended(String src); @Deprecated InputStream retrieveStyleSheet(String uri); @Deprecated byte[] retrieveStream(String src); byte[] retrieveBytesFromResource(String src); InputStream retrieveResourceAsInputStream(String src); boolean isDataSrc(String src); URL resolveAgainstBaseUri(String uri); void resetCache(); @Deprecated boolean isImageTypeSupportedByImageDataFactory(String src); }
ResourceResolver { @Deprecated public PdfImageXObject retrieveImage(String src) { PdfXObject image = retrieveImageExtended(src); if (image instanceof PdfImageXObject) { return (PdfImageXObject) image; } else { return null; } } ResourceResolver(String baseUri);  ResourceResolver(String baseUri, IResourceRetriever retriever); IResourceRetriever getRetriever(); ResourceResolver setRetriever(IResourceRetriever retriever); @Deprecated PdfImageXObject retrieveImage(String src); PdfXObject retrieveImageExtended(String src); @Deprecated InputStream retrieveStyleSheet(String uri); @Deprecated byte[] retrieveStream(String src); byte[] retrieveBytesFromResource(String src); InputStream retrieveResourceAsInputStream(String src); boolean isDataSrc(String src); URL resolveAgainstBaseUri(String uri); void resetCache(); @Deprecated boolean isImageTypeSupportedByImageDataFactory(String src); static final String BASE64IDENTIFIER; static final String DATA_SCHEMA_PREFIX; }