Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in iText AcroForm Programming  RSS feed

rama kolla
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using iText's Java PDF library to create AcroForms.

My context is:
I create an acroform which will be placed in my local disk. I again use java code to send it as an attachment in a mail to the client. Client opens the attachment(PDF file) and fills in the form details and when he/she clicks on the Submit button in the PDF(AcroForm), the form data has to be sent to some JSP file on the server. But it is not rather it says:
"HTTP Error 407
407 Proxy Authentication Required

You must authenticate with a proxy server before this request can be
serviced. Please log on to your proxy server, and then try again."

Please find the code I have written for Submit button

// Add Submit button
PushbuttonField submitBtn = new PushbuttonField(writer,
new Rectangle(0, 0, 35, 15),"submitPOST");
PdfFormField submitField = submitBtn.getField();

cell = new PdfPCell();
cell.setCellEvent(new FieldCell(submitField, 35, writer));

Atleast if the captured data in the acroform is converted to XML format and sent to the server as an XML attachment automatically is also sufficient.

I have tried and still in the process of trying.....
Any help is appreciated!


[ UD: provided a more descriptive title ]
[ July 23, 2008: Message edited by: Ulf Dittmer ]
Ulf Dittmer
Posts: 42972
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

I'll move the post to the "Other Open Source Projects" forum, where iText is discussed.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!