Not sure what's happening, the code compiles fine for me when linked against iText 2.1.7 and Commons IO 2.0.1 (after fixing the missing import of the Rectangle class)
Joined: Nov 22, 2009
Thanks Ulf Dittmer
I got my problem I was useing two common jars together the new and the old one , so removing the old solve the problem , but I discoved that the pdf file is only the source
code of my html page. That is not what I am looking for , Basically I am trying to generate pdf file once use clicks a print button. User will fill form first on page , then when user
clicks print , all user information will be inserted in pdf as form so it can be printed then .what shall I do !!!
Joined: Mar 22, 2005
what shall I do !!!
Please restrict yourself to single punctuation signs; it's sufficient. What's more, question are ended with question marks, not exclamation marks.
You can submit the form to the server, create the PDF there using iText, and then either a) stream the PDF as response back to the client, or b) store it on the server and include a link to it in the response page.