xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dahepe <pe...@gmx.net>
Subject Re: Using <fo:external-graphic ... /> in applet
Date Tue, 15 Dec 2009 13:15:31 GMT


I'm really surprised, that no one else seems to have this problem...

At least we found a workaround to make the templates and the
&lt;external-graphic ... /&gt; work for us. There seem to be two feasible
solutions that don't require too much changes:

Implement a custom 
URIResolver , that loads the external references in the template in advance
and make the Transformer use this resolver. As the external references might
also come from included files, you will have to generate the FO first and
than fetch the referenced graphics in the URIResolver.
Replace the used SecurityManager by a custom implementation, that allows
access to the requested resources. As the SecurityManager is a system (JVM)
wide setting you should probably replace the SecurityManager after
generation of the PDF again with the one used previously.

Best Regards
View this message in context: http://old.nabble.com/Using-%3Cfo%3Aexternal-graphic-...--%3E-in-applet-tp26628106p26794599.html
Sent from the FOP - Users mailing list archive at Nabble.com.

View raw message