Date: 2005-01-31T01:58:18 Editor: 81.221.167.213 Wiki: XML Graphics - FOP Wiki Page: HowTo/HtmlToPdf URL: http://wiki.apache.org/xmlgraphics-fop/HowTo/HtmlToPdf
An initial page for HTML to PDF conversion for others to improve. New Page: ##language:en = How to convert HTML or XHTML to PDF = Apache FOP is an XSL-FO processor. If you want to convert HTML to PDF you need to convert it to XSL-FO first, before FOP can do anything for you. There are several possible approaches: 1. Start with XML and create a separate XSLT that converts the XML to XSL-FO instead of PDF. That's probably the best approach if the original data is available as XML. 2. Convert the HTML to XHTML and convert the XHTML to XSL-FO using XSLT. /!\ FOP currently doesn't support automatic table-layout. Column widths have to be specified. 3. Convert the HTML to XSL-FO directly using some specialized tool (check out the ''Tools'' section below). (!) '''''Add additional content (additional ideas, pitfalls, etc.)!''''' == Tools == * [http://xml.apache.org/fop/resources.html#products-other Links to related tools] * [http://jtidy.sourceforge.net JTidy] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]