• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to convert html to pdf???  RSS feed

 
sarika mishra
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone who can help me to come out from this problem..pls
 
Kj Reddy
Ranch Hand
Posts: 1704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sarika mishra:
Anyone who can help me to come out from this problem..pls


You can use iText API which is open source project.

You can get more details at:
http://www.onjava.com/pub/a/onjava/2003/06/18/dynamic_files.html
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This site has a nice collection of links for Java programmers interested in reading or writing PDF format.

Personally I have used the Apache FOP toolkit with considerable success. The toolkit includes some stylesheets for converting XHTML to PDF - it helps a bunch if your HTML is well formed.
Bill
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not a Java approach, but if you just want to create the PDF file, you can print the HTML page to a Postscript file, and use Ghostscript to convert the Postscript file to a PDF file.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!