Hi iText Gurus, 

I have a Servlet that opens an existing pdf form as template.


PdfReader reader = new PdfReader("template.pdf");           
                        
// setting some response headers
response.setHeader("Expires", "0");
response.setHeader("Cache-Control", "must-revalidate, post-check=0,
pre-check=0");
response.setHeader("Pragma", "public");
// setting the content type
response.setContentType("application/pdf");
// the contentlength is needed for MSIE!!!
response.setContentLength(reader.getFileLength());
// write ByteArrayOutputStream to the ServletOutputStream
ServletOutputStream out = response.getOutputStream();

PdfStamper stamp = new PdfStamper(reader, out);

stamp.close();
out.flush();   


Before send the response to the client I need fill some fields in the form
with values from DB. 
For simple fields it is posible with:

stamp.setField(String name, String value);



The problem is with Combo and List fields.

Is there a easy way of dinamically fill a field of FIELD_TYPE_COMBO with a
list of values in the stamp??

I would like something like this:

stamp.setField(String name, String[] value, String[] display)


Best regards,
Jesus



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to