File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes I can't convert jsp pages to pdf why? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "I can Watch "I can New topic
Author

I can't convert jsp pages to pdf why?

alsoumahi alBatal
Ranch Hand

Joined: Nov 22, 2009
Posts: 62
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
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
If you have CSS-styled XHTML, then the FlyingSaucer library does a good job of converting that to PDF.


Android appsImageJ pluginsJava web charts
 
 
subject: I can't convert jsp pages to pdf why?
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com