Nicolas Baumann <nicos109 <at> free.fr> writes:

> 
> Hello
> 
> I'm experimenting some performance issue due to the newFOP method which takes 
> the ouputstream as argument :
> fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out)
> This is called every time a pdf is generated, and takes an especially long 
time 
> the first time it is called. So what I want to do is to call it once when the 
> server loads, by doing this without the outputstream :
> fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent)
> and then do the transformation with Transformer.transform().
> But before doing each transormation, I need to set the outputstream, but the 
> Fop.setOutputStream() method is deprecated, so what should I do ?
> 
> Thanks,
> Nicolas.
> 


I've just seen that I can't do this anyway, the outputstream must be set 
directly by the newFop method or it throws :
org.apache.fop.apps.FOPException: OutputStream has not been set




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to