You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by Apache Wiki <wi...@apache.org> on 2005/05/15 11:25:36 UTC

[Xmlgraphics-fop Wiki] Update of "HowTo/HtmlToPdf" by Dirk Eismann

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Xmlgraphics-fop Wiki" for change notification.

The following page has been changed by Dirk Eismann:
http://wiki.apache.org/xmlgraphics-fop/HowTo/HtmlToPdf

------------------------------------------------------------------------------
  
  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.
+  1. If the original data is available as XML it is probably the best approach to start with XML and create a separate XSLT that converts the XML to XSL-FO.
  
-  2. Convert the HTML to XHTML and convert the XHTML to XSL-FO using XSLT.
+  2. Convert the HTML to XHTML (e.g. by using jtidy) and convert the XHTML to XSL-FO using XSLT (e.g. with the Xalan included in the FOP distribution).
  
    /!\ 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).
+  3. Convert the HTML to XSL-FO directly using a specialized tool called html2fo (check out the ''Tools'' section below). This easy approach will offer no or very limited control of the PDF output design.
  
  (!) '''''Add additional content (additional ideas, pitfalls, etc.)!'''''
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org