File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes Problem in iText AcroForm Programming Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Problem in iText AcroForm Programming" Watch "Problem in iText AcroForm Programming" New topic

Problem in iText AcroForm Programming

rama kolla

Joined: Jun 16, 2008
Posts: 1
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 ]

Lucky to get in touch with java!!
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Welcome to JavaRanch.

I'll move the post to the "Other Open Source Projects" forum, where iText is discussed.
I agree. Here's the link:
subject: Problem in iText AcroForm Programming
jQuery in Action, 3rd edition