Thanks bruno Is it possible to send response to the user directly as PdfWriter.getInstance(document, response.getOutputStream());
When I use this I am getting the error as illegal state exception [EMAIL PROTECTED] wrote Quoting [EMAIL PROTECTED]: > I tried this method. After I create the PDF file I redirect the response to > the pDF file created then I create the file Object delete this file, File > gets deleted first before redirecting the response to the PDF file. Isn't this what you expected? Contrary to politics and religion, some things in the world do obey elementary logic ;-) What you need to do is redirect the responce NOT to the actual file, but to a Servlet who 'serves' the file and deletes it after it is sent to the client. Bruno ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
