I for myself read a pdf template (physical file) into a
ByteArrayOutputStream and pass it to a PdfStamper where I do all the
manipulation (in your case a PdfWriter object).

After that the final pdf (still a ByteArrayOutputStream) is send through a
web service to the clients web browser. From there the adobe reader plug
takes over and shows the pdf.

So yes it is possible to view a ByteArrayOutputStream.


2007/4/13, Mork Afur <[EMAIL PROTECTED]>:

In the case where a file-based PDF would have a short life span, we are
thinking about just using a ByteArrayOutputStream representation for
creating and viewing the PDF.

Is this possible? I'm not sure how we'd "view" the ByteArrayOutputStream.

Also, there is only one example (in the 297 java examples with the book)
that returns a "baos" object.

If this is a reasonable approach, is there a good example that
demonstrates
it?

Or, is there a better way to generate and view a PDF where a file-based
method might not be the most efficient (lots of users creating PDFs that
don't last a long time)?

One complication may also be that we're using XML files to generate the
PDF.

Thanks for any thoughts or suggestions.

J

_________________________________________________________________
Need a break? Find your escape route with Live Search Maps.
http://maps.live.com/?icid=hmtag3


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to