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] Visit My Homepage at http://www.unc.edu/~ericv |
- Re: [iText-questions] Best Approach/How To? Eric Vandervort
- Re: [iText-questions] Best Approach/How To? Leonard Rosenthol
- RE: [iText-questions] Best Approach/How To? Paulo Soares