Having introduced the concept of high definition PDF’s output straight from Flare’s source files with minimal post-production, we can now start to dig into the technologies that are used to produce it.
The XSL style sheet produces the following sections of XML-FO :
- Page Layout Definitions
- Page Sizes and Layout
- Branded Headers and Footers
- Odd Even Pages
- Branded Title Pages
- It firstly calls the Flare TOC file, using the @Title element, to create the bookmarks for the pdf.
- It secondly calls the Flare TOC file, using the @Title element to create a structure for the document.
- Table of Contents
- Main Headings
- It thirdly calls the Flare TOC file, using the @Link element to locate each topic in turn.
- Each topic is then added to the above structure.
- Branded Back Pages
This is all wrapped up as one big XML-FO file.
The XML-FO file is then passed into the Apache FOP engine which outputs the PDF document.
In the next part we’ll look at some of the key issues to solve with this process and the code you can use to overcome them.