• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Converting Html to pdf

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I need to convert and save the Html that is generated on the fly to pdf. Requirement is ,when user ckicks on the link ,next page has to be displayed on the user browser and a pdf copy of next page has to be saved on his/her machine.

Any pointers will be greatly appreciated.

Thanks and regards,
Suchitra
 
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not aware of free tools which can convert to HTML to PDF however couple of commerical softwares are available like BigFace, CORDA and PD4ML. Much better way will be to use Apache FOP. All you need to do is
- Convert HTML to XHTML
- Apply XSLT to create FO
- Use Apache FOP to convert the FO to PDF

You can search at pdfzone.com and w3c.org under (XSL and XSLT)
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This site has a tutorial that includes converting XHTML to pdf
Bill
 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://www.javaworld.com/javaworld/jw-04-2006/jw-0410-html.html

This above doc will guide you thru the process of converting html to pdf.
 
reply
    Bookmark Topic Watch Topic
  • New Topic