Date: 2005-01-31T01:58:18
   Wiki: XML Graphics - FOP Wiki
   Page: HowTo/HtmlToPdf

   An initial page for HTML to PDF conversion for others to improve.

New Page:


= 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 ==

 * [ Links to related 
 * [ JTidy]

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to