Hi,

I need to add a hidden form field and a HtmlPostField on each page of an existing pdf document (contains form fields).

From what I read in the documentation, I need to use the PdfStamper Class:
I guess my code will look like: (I need help on *add my forms here!!!*)
Thanks for your help
--
Vincent

     PdfReader pdf_reader;
     FileOutputStream pdf_os;
     pdf_reader = new PdfReader(pdf_file);
     pdf_os     = new FileOutputStream(dest_file);
     PdfStamper stamper = new PdfStamper(pdf_reader, pdf_os);

     int nb_pages = pdf_reader.getNumberOfPages();
     for (int i=1;i<=nb_pages;i++) {
       PdfContentByte cb = stamper.getOverContent(i);
       //*add my forms here!!!*

}



-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to