After a PDF rendering (FOP trunk svn629782), I need to delete the PNG image
referenced in the FO file.
(This image is regenerated before pdf rendering)
But the file cannot be deleted: "new File(...).delete()" always returns "false"
This file can be deleted until the "Image" creation:
PDFRenderer.putImage()
org.apache.xmlgraphics.image.loader.Image img = manager.getImage(...);
In my configuration, ImageLoaderImageIO is used
I have tried to modify the xmlgraphics-commons source code
(xmlgraphics-commons-1.3-src.zip 07-Mar-2008):
ImageUtil.closeQuietly(src); //Cannot do that as codecs my do late reading
//ImageUtil.removeStreams(src);
It seems to work: PNG file is deleted
As I don't want to modify xmlgraphics-commons sources, can somebody helps me to
delete this PNG file either with a FOP sources modification or with an other
method than "File.delete()".
Thanks,
Patrice
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]