Hello,
We have some transactions stored in the database. We need to generate a PDF
that contains transaction information and show it on the browser. The PDF
generation happens real time using iText. The transaction may contain one data
filed that has 4 Lakh characters in it. There could be many such transaction.
So the generated PDF is very large (2-3 thousand pages).
As specified in the chapeter 2 of the book iText in Action it says if we use
ServletOutPutStream for getting the writer, it writes the PDF to the browser.
But the problem is due to the 4 Lakh character data PDF generations takes lot
of time. If the transactions are more it may take up to 10 mins.
if i put option 1 the user sees the browser download window or in case of
second option the user sees a blank page.
1) response.setHeader("Content-disposition","attachment; filename=my.pdf");
2) response.setHeader("Content-disposition","inline; filename=my.pdf");
one the Entire PDF is generated then it is displayed properly on the browser.
My Question: Is there any way through which i can keep showing PDF pages as
they get generated real time. I though by using OutputStream it will push PDF
data to the browser as it gets generated but that didnt happen. Please let me
know if this is possible..
Thanks a lot
Kaustubh
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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