Chapter 4.8. PDF stylesheet customization

For the creation of PDF Docmenta uses the DocBook stylesheets. The complete process for the PDF generation is shown in the following illustration:

Figure 4.8.1. From XHTML to PDF

First the XHTML is transformed to DocBook. This is done by applying an XSLT script named html2docbook.xsl to the XHTML content. The resulting DocBook XML is then transformed to XSL-FO by applying the DocBook stylesheets. Finally, the Apache FOP formatter is used to transform the XSL-FO to PDF.
Docmenta allows to add extensions to the XSL used in the first two steps. This is described in the following sections.