• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Converting Html to pdf

 
Suchitra Bhat
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Purushoth Thambu
Ranch Hand
Posts: 425
  • 0
  • Mark post as helpful
  • send pies
  • 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)
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13048
6
 
Anju sethi
Ranch Hand
Posts: 91
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic