|
Replies:
4
-
Last Post:
Mar 20, 2009 4:33 PM
by: mloayzagahona
|
Threads:
[
Previous
|
Next
]
|
|
|
|
|
|
How to convert HTML to PDF?
Posted:
Mar 19, 2009 3:45 PM
|
|
|
Hello!
I'm developing Tomcat/Struts application. I want to convert, for example, http://www.google.com to PDF. I found iText solutions, but i still haven't made them to work. Any experience with this? Any other suggestion?
All useful hints are welcome!
Regards
|
|
|
|
|
|
|
Re: How to convert HTML to PDF?
Posted:
Mar 20, 2009 6:35 AM
in response to: tokajac
|
|
|
I'm not aware of a direct path to do it but... .- XHTMLRenderer (a.k.a. the Flying Saucer) is a library that allows you to convert XHTML to PDF quite easily (https://xhtmlrenderer.dev.java.net/) .- HTMLCleaner is a library that can "clean" a given HTML page and turn it into an XHTML page (http://htmlcleaner.sourceforge.net/)
I've used them separately and they worked fine for me, so you just have to connect both and voilà .
S!
|
|
|
|
|
|
|