Hi,

Setting the content type is not sufficient to generate a PDF... are you trying to output a PDF from an existing HTML file, or are you dynamically generating the HTML? You say you aren't using JSP, so I'm thinking your either forwarding to an HTML page, or generating it in your Action. While there are HTML to PDF converters, I'm not sure which if any could be called from a webapp, and even so, typically dynamically generated PDF doesn't make a stop as HTML first, so it might help to understand a little better what your trying to do to offer some suggestions. But, it is definitely more than just the content type.

Frank

Anjishnu Bandyopadhyay wrote:
Hi all,




I am trying to programmatically convert an HTML file to pdf dynamically;
by setting the content type. But, I am not being able to succeed.

Any pointers regarding the same will be of much use.




Please note that, I am not using a JSP here. (So that, I could be able
to set the "content" of the "response").




With best regards,

Anjishnu.






**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
 (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to