Discussions

Web tier: servlets, JSP, Web frameworks: Converting HTML to PDF

  1. Converting HTML to PDF (2 messages)

    Hi..., We need a java tool that will convert HTML to PDF ? Are there such tools available? Any pointers/links would be helpful. Regards, Praveen

    Threaded Messages (2)

  2. Re: Converting HTML to PDF[ Go to top ]

    Hello, We used a commercial .NET component (ABCpdf .NET), wrapped it as a webservice to create PDF doc's, since we did not find a sufficient Java component to suite our needs. Seven49.net (http://html2pdf.seven49.net/Web/) provides the same for you if you are not able to wrap or host it yourselves. We also took a look at: PD4ML (Java commercial), problems with divs, javascript and flash. ABCpdf.NET has much better support for that. Open office, does not import css and has no div support, unsuitable. Good luck, Johan
  3. via XHTML and XSLFO[ Go to top ]

    This is what we do, using just free stuff: - convert html to xhtml with JTidy - apply some small XSL conversions to make the xhtml more tasty - convert xhtml to pdf via CSSToXSLFO (internally via XSLFO using FOP) It is quite a stack, but it works fine for simple html, even if not everything it is effectively under control. http://www.re.be/css2xslfo/ http://xmlgraphics.apache.org/fop/0.20.5/index.html http://www.javaworld.com/javaworld/jw-04-2006/jw-0410-html.html Hope this helps. Michele