Azùa Giovanni (KSXD 32) wrote: > Hello, > > Is there any way to avoid creating a temp.pdf file for implementing the > use-case below? Basically I need to create a letter.pdf document by > loading and combining many small "template parts" the template parts may > need (as in the case depicted below) to be populated and flattened first.
Please read the book. It explains that you can write PDF to any OutputStream. Why are you using a FileOutputStream, if you want to write the PDF to memory? Use a ByteArrayOutputStream instead. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ 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/