IntelliJ open source
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » JSP
 
RSS feed
 
New topic
Author

I can't convert jsp pages to pdf why?

alsoumahi alBatal
Greenhorn

Joined: Nov 22, 2009
Messages: 3

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
Bartender

Joined: Sep 29, 2008
Messages: 6875

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.

Consultant/Trainer | Polyglottal Developer | Struts Committer/PMC | Struts 2 Web Application Development
Ulf Dittmer
Sheriff

Joined: Mar 22, 2005
Messages: 26792

If you have CSS-styled XHTML, then the FlyingSaucer library does a good job of converting that to PDF.

Java web chartsImageJ PluginsSpecification URLsJava FAQs
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » JSP
 
RSS feed
 
New topic
MyEclipse Enterprise Workbench

.