You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Marcel S <di...@web.de> on 2007/03/29 11:13:03 UTC

PDF-File not save on disk

Hello,

I made an application that creates a PDF-File with the FOP-Engine.

My problem is that i can only save the PDF-File on Disk.But i don't want to 
save it i just want it in a variable to proceed it to another method.(sending 
it as an email attachment)
Cause this application runs on a mainframe it is not good to save it to disk.

How can i do this?Are there any tutorials or examples around?

With kind regards

Marcel


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: PDF-File not save on disk

Posted by Adrian Cumiskey <ad...@gmail.com>.
Hi Marcel,

Its best if you take a look at org.apache.fop.cli package.  Start by 
looking at Main.startFOP() and then trace to 
InputHandler.transformTo(OutputStream) and 
InputHandler.transformTo(Result).  You'll see from this code that all 
you need to do is basically create your OutputStream (e.g. a 
ByteArrayOutputStream) object and then wrap it in a Result object which 
is passed to the transform() method of the transformer.

Adrian Cumiskey.

Marcel S wrote:
> Hello,
> 
> I made an application that creates a PDF-File with the FOP-Engine.
> 
> My problem is that i can only save the PDF-File on Disk.But i don't want to 
> save it i just want it in a variable to proceed it to another method.(sending 
> it as an email attachment)
> Cause this application runs on a mainframe it is not good to save it to disk.
> 
> How can i do this?Are there any tutorials or examples around?
> 
> With kind regards
> 
> Marcel
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org