• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

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

 
Ranch Hand
Posts: 119
  • 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
 
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.
 
Rancher
Posts: 42973
76
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!