Abhishek Srivastava wrote:

Hello Bruno,

Please ignore my prevous mail.

In a console application, I am able to see Fields Text1, Text2 so the way I 
have created the PDF is correct and I am able to see Text1 and Text2 through 
iText!

So now the only problem is to write the stamper to the HttpResponse.

PdfReader reader = new PdfReader("c:\test.pdf");
PdfStamper stamper = new PdfStamper(reader, response.getOutputStream());

stamper.getAcroFields().setField("Text1", "Abhishek1 ");
stamper.getAcroFields().setField("Text2", "Abhishek2 ");
Response.End();

I told you not to forget to close the stamper objects (because I always forget to do so myself) ;-)
br,
Bruno


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to