Hi Amit,

2009/11/4 Amit Dave <[email protected]>

>  Hi,
>
>  I am using iText with Struts in my web application. In my ajax request I
> am sending the html that should be converted to pdf by iText.
>
> 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
>
>
>
> But the problem is that I am not able to open the generated pdf file, 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
> ?
>
> What should my execute method return ?
>
What do you mean by not being able to open the file?
- That it throws an error in Adobe Reader?
 -> Have you tried saving the pdf file on the file system (on the server
side) and opening it? With Adobe Reader? With another pdf reader?
- That nothing is returned to the browser?
 -> Have you followed step by step the tutorial you refer to? Have you tried
with different browsers?

By answering these counter-questions, you'll help us help you.

Cheers,
alexis
------------------------------------------------------------------------------
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/

Reply via email to