See http://article.gmane.org/gmane.comp.java.lib.itext.general/6938.
Best Regards, Paulo Soares > -----Original Message----- > From: Eric Vandervort [SMTP:[EMAIL PROTECTED] > Sent: Friday, October 03, 2003 15:35 > To: [EMAIL PROTECTED] > Subject: [iText-questions] Best Approach/How To? > > I have a pdf file with one page, that has form fields on it as well as a > template. I can successfully fill out those fields, but I have a few > questions about my next steps. > > 1. How do I add more pages for the same template? (i.e., one customer > per page) > 2. What if I had two different pages with form fields on it, how do I > fill out page 2 when I am done with page 1? > > I've seen code but from what I am reading its creating new templates each > time. This one I have is already created I just want to fill it out and > if there's more than one "record", add the same new page and fill that one > out. > > Below is the code I am using now for testing. > > Thanks, > > Eric > > > res.setContentType("application/pdf"); > OutputStream out = res.getOutputStream(); > > PdfReader reader = new PdfReader(new URL(" > <http://yukon.ais.unc.edu:7777/frs/bar/GenerateFDF1.pdf>")); > PdfStamper stamp = new PdfStamper(reader, out); > AcroFields form = stamp.getAcroFields(); > form.setField("Line", "Line 1"); > form.setField("Name", "John Doe"); > form.setField("City", "Durham"); > form.setField("State", "NC"); > > stamp.setFormFlattening(true); > stamp.close(); > > > > Eric Vandervort > Applications Analyst/Programmer > Administrative Information Systems > University Of North Carolina at Chapel Hill > Phone: (919) 962-9894 > Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > Visit My Homepage at <http://www.unc.edu/~ericv> ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions