Stephan Trautmann wrote:
> Hello,
> 
> I have created a pdf and saved it temporaily to memory into a 
> bytearrayoutputstream.

This means that you have bytes like:
byte[] = { '%', 'P', 'D', 'F', '-', '1', '.', '4',... }

> Now ....

That byte stream is a PDF file; it contains PDF syntax.

> I would to like to output this stream into a rtf file....

So you want an RTF with content:
%PDF-1.4 ...?

> Maybe you ask yourself now,
>"why the hell doesn't he directly output into a document having a rtfwriter 
>instance"... well..

Yes, that's why nobody answered your initial question.

> I have created this pdf using stamper and columntextobject with direct 
> content and so one.

ColumnText, direct content,... those are PDF specific classes.
Those aren't supported in RTF.

> its simply easier to save it to a bytearray to display it on my JSP, which 
> works pretty well =) ...

You can redirect those bytes to a browser.
They will show up as a PDF file.

> And now the user should have the possibility to choose between pdf or rtf...

But you only generated the bytes of a PDF file. You need a PDF to RTF 
convertor to server RTF. Due to the nature of PDF, it will be hard to 
find software that allows you to do that.

> so the generated Bytearrayoutputstream should be redirected to a rtf file...

That's... the reason why you didn't get an answer earlier. Usually 
people don't accept it when we say that their design isn't good.

> All objects are converted to be used with rtf ( i do not use pdfptables and 
> so on...)...

You are using ColumnText! You are using direct content!

> Would be lovely if anyone has a general suggestion to get on with this 
> issue...
> (something like reading the BAOS again and use the reader to write to rtf...
> but i don't know how =( ...)

That's because you're asking something that is impossible.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to