> -----Original Message-----
> From: Will Peterson [mailto:[EMAIL PROTECTED]
> Would there be any way to have FOP render files from a JAR file?
> I have created a program that allows me to point to a XSL:FO (template)
file in a jar file,
> and to render the file to PDF. However, I have not been able to point to
> (for example JPG, GIF) that are "in" the JAR file.
> Is there a way to set up the driver to point to a directory into the JAR
> or would I have to extract the files first.
It is possible, and sounds a bit like a thread from about 2-3 months ago...
How is your Java?
At that time it was suggested that we change our
org.apache.fop.image.GifImage class, namely the loadImage() method, right
after opening the first try-block:
ImageProducer ip = (ImageProducer)this.m_href.getContent();
Toolkit toolkit = Toolkit.getDefaultToolkit();
Image image = toolkit.getImage(m_href);
ImageProducer ip = image.getSource();
As I said to the OP at that time, the suggestion sounded good although I
wasn't too sure whether there were other issues involved. Right now it still
hasn't found its way into the sources, I'm afraid.
Hope this helps!