I have upgraded FOP version from fop 1.1 to fop 2.3 version but getting
org.apache.fop.events.LoggingEventListener processEvent Image not found.
Below are the code snippets modified for upgrading. Master View code using fop 2.3
Code:
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer();
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
//foUserAgent.setURIResolver( this.getURIResolver() );
transformer.setURIResolver(this.getURIResolver());
Fop fop = null;
Source src = new StreamSource(new ByteArrayInputStream(foDoc));
if (this.getContentType().equals("application/pdf"))
{
fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, os);
}
else if (this.getContentType().equals("application/postscript"))
{
fop = fopFactory.newFop(MimeConstants.MIME_POSTSCRIPT, foUserAgent, os);
}
View code for fop 2.3
protected static final FopFactory fopFactory = FopFactory.newInstance(new File(".").toURI(), resolver);
XSLT code
<fo:external-graphic src = "stylesheets/Anthem_Join_In.bmp"/>