Amit Dave wrote: > In the execute method, I get the html from the request and convert it to > PDF using iText as shown in the example in the iText website: > http://itextdocs.lowagie.com/tutorial/general/webapp/index.php
That page doesn't show how to convert HTML to PDF. Have you tried writing a standalone application that generates the PDF? If so: did that create a valid PDF? > But the problem is that I am not able to open the generated pdf file, Can you show us the generated PDF? Is it a PDF file or some error message in HTML? > I have Adobe Reader 9 installed on my system and I am using iText2.1. > What is the action mapping I need to do in the config file for this action ? Forget about Struts, first try to have your app working in a web application without Struts. PDF is a binary format. Why would you use Struts to generate document in binary format? Isn't that like eating soup with a fork instead of with a spoon? -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
