W3C home > Mailing lists > Public > www-xsl-fo@w3.org > August 2004

Re: Nested HTML tables to PDF

From: Werner Donné <werner.donne@re.be>
Date: Fri, 27 Aug 2004 10:41:47 +0200
Message-ID: <412EF3CB.5020007@re.be>
To: "Lensch, Thomas" <Lensch@juris.de>
CC: www-xsl-fo@w3.org


You can first convert the HTML file to XHTML using tidy
(http://www.w3c.org/People/Raggett/tidy/). The command-line would be
as follows:

   tidy -asxhtml -indent -wrap -1 input.html > output.html

Then you can run CSSToXSLFO (http://www.re.be/css2xslfo) like this,
using jre1.4:

   java -jar css2xslfo.jar output.html -fo output.fo

While this will produce valid XSL-FO, it is not tested with FOP.

Best regards,


Lensch, Thomas wrote:
> Hi,
> we've got nested HTML-tables that are presented by our application. With browser this looks o.k. Furthermore we want to present our customers these documents as PDF.
> How can i transform these HTML-tables into fo:table achieving mostly the same layout? Is there an easy way to achieve this? What are the restrictions? (We use Apache FOP).
> Best regards,
> Thomas.

Werner Donné  --  Re BVBA
Engelbeekstraat 8
B-3300 Tienen
tel: (+32) 486 425803	e-mail: werner.donne@re.be
Received on Friday, 27 August 2004 08:42:07 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:29 UTC