I'm creating a PDF in two passes with my goal to end up with it as a file on
the server. The first pass creates the PDF and the second adds things like
headers, footers, etc. using PDFStamper. The PDF is being generated from a
database so there is a possibility that it could get to be large (a few hundred
pages?).
Right now I have the PDFWriter directing the output to a FileOutputStream.
Once that is done, the PDFReader picks it up, connects to and uses in
PDFStamper to process and send the PDF to the server using another
FileOutputStream.
It occurred to me that I might be doing this wrong. If PDFReader brings the
whole PDF into memory, wouldn't it be better to have PDFWriter put the PDF out
as a ByteArrayOutputStream which (I think) PDFReader can pick up? Or does
PDFReader only bring it in as it needs it? Or is there some other issue I'm
missing....
I'm not real clear on what the tradeoffs are between running everything out
files and accepting the I/0 or keeping everything in memory.
Can anyone give me some guidance?
Thanks!
Warren
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/