Steve Bang wrote:
> I'm searching for a way to take an HTML page with embedded GIFs and render
> it to a PDF file.  Is this possible using JSP?  Has anyone tackled this
> issue?  I'm new to JSP, but have been told it should be possible (I have my
> doubts).

Without writing your own page layout engine, no.

There are several free libraries for creating PDF from Java, but these
provide low-level primitives (draw a line, paint some text, etc.) mostly
equivalent to AWT Graphics (and in some cases Graphics2D) operations.

The KL Group (www.klgroup.com) has a commercial library for creation of
PDF from Java that has some page layout capabilities.

None of the above have a quick-and-dirty method of creating PDF from
HTML that I know of.

In the free software unix-y environment that are several apps that you
could execute -- we use HTMLDOC to go from HTML to PDF with moderate
success.  There is also html2ps which will take you to Postscript
output, and then Ghostscript's ps2pdf that will take you to PostScript
output.  You can use the freshmeat.net search facility to find most of
these.

                        -=- D. J.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to