• Post Reply Bookmark Topic Watch Topic
  • New Topic

I can't convert jsp pages to pdf why?  RSS feed

 
alsoumahi alBatal
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have CSS-styled XHTML, then the FlyingSaucer library does a good job of converting that to PDF.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!