New Forum | Previous | Next | (P-PDF) Developers
Topic: Automatically populating PDF form fields from HTML forms
Conf: (P-PDF) Developers, Msg: 74762
Date: 10/23/2002 04:34 AM
2. Use the iText java library to create a class, callable from your data collection servlet, that loads the correct PDF, then merges the values for each field with the XML properties file or tables you saved for that PDF, and writes them to the loaded PDF. Then save the overwritten PDF to your database.
Since iText doesn't recognize AcroForms or the fields in them when reading a PDF, your populated output PDF may actually be smaller than the original, unpopulated file.