Hello IP,

you could try to do something like:

FileOutputStream os = new FileOutputStream(outFile);
.... (use your code)...
driver.setOutputStream(os);
...
os.close();

Works for me.

Greetings,
Patrick

Dipl. Inform. Patrick Chaumette

T-Systems ITS GmbH

Service Prozesse Retail
Hausanschrift: Fasanenweg 9, 70771 Leinfelden-Echterdingen
Postanschrift: Postfach 100258, 70746 Leinfelden-Echterdingen
Telefon: (0711)972-2437
Telefax: (0711)972-1949
E-Mail: [EMAIL PROTECTED]
Internet: http://www.t-systems.de



> -----Ursprüngliche Nachricht-----
> Von: Ingo Peter [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 3. Mai 2002 12:11
> An: [EMAIL PROTECTED]
> Betreff: Problem after generating PDF
> 
> 
> Hi,
> I use fop embedded to generate pdf-files and it works very fine.
> But after generating the pdf, I have to close my 
> java-application, because
> the the outputfile is still open.
> If I don't close my application acrobat tells me a locking-error.
> 
> I use the example for empedding from apache:
> 
>   Driver driver = new Driver();
>   driver.setRenderer(Driver.RENDER_PDF);
>   InputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile);
>   XMLReader parser = inputHandler.getParser();
>   driver.setOutputStream(new FileOutputStream(outFile));
>   driver.render(parser, inputHandler.getInputSource());
> 
> Is there any command to close the outputfile?
> 
> thanks
> IP
> 

Reply via email to