PDF-File not save on disk

2007-03-29 Thread Marcel S
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PDF-File not save on disk

2007-03-29 Thread Adrian Cumiskey

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





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