>> >> Is there a simple example about the following steps please? >> >> Purpose: Based on existing a.pdf, to write more info, and print through >> web servlet GUI. >> >> Steps to be done: >> (1) copy a.pdf to dynamic_pdf2.pdf > > Why do you need to copy a.pdf? Can't you just read a.pdf into a > PdfReader object and use a PdfStamper that creates bytes in memory? > >> (2) write to dynamic_pdf2.pdf > > I don't think this step is necessary. > >> (3) output dynamic_pdf2.pdf from servlet web GUI >> > If you have a PdfStamper that creates bytes in memory, your servlet can > send those bytes to the browser. The browser will open a PDF viewer and > show the PDF. > > For an example: http://itextpdf.com:8180/book/form > Fill out this form, click post, and you'll get a form that is filled out. > For the code: http://itextpdf.com/examples/iia.php?id=170 > > If you don't understand the code or if you're tempted to say "it doesn't > work", please read the book first.
This is great! Just a small question, how to set a default file name for the export file from the browse? Thanks alot! Emi ------------------------------------------------------------------------------ Own the Future-Intel® Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php