Hi experts , I am trying to convert a jsp page to a pdf file but I don't know why it couldn't be converted.
I have one program that successfully convert html pages to pdf files , but for jsp it can't be.
regarding the program itslef I am not getting any compiling error or run time error , the pdf file is generated but once I open it I get this message
"adope reader couldn't open ***.pdf because it is either not a supported file type or because the file has been damaged ( for example it was sent an e-mail attachment
and wasn't correctly decoded"
do you think the adope reader is the problem need to install a new version .
please help me guys with this
please if you have another program to convert please show me the sample if possibe
thanks
This message was edited 2 times. Last update was at by Bear Bibeault
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12612
posted
0
If you're saying that converting HTML *source* to PDF works, but converting JSP *source* to PDF doesn't, there's the problem: the JSP would need to be rendered somehow before doing to conversion.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 32421
posted
0
If you have CSS-styled XHTML, then the FlyingSaucer library does a good job of converting that to PDF.