XML technologies / DocBook / Generating FO (PDF) / Changing page sizes / Page layout parameters
(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)
Margins have preset defaults. The parameters in the following table control page layout.
Table: DocBook XSL page layout parameters
Parameters | Description |
| Page width |
| Page height |
| Distance from the physical page’s top edge to the top of the header |
| Distance from the bottom of the footer to the physical page’s bottom edge |
| Header height |
| Footer height |
| Distance from the top of the header to the start of the body text |
| Distance from the end of the body text to the bottom of the footer |
| Distance from the binding edge to the start of the body text |
| Distance from the end of the body text to the outer page edge |
| Controls double-sided printing; the default is |
To set the page size to 10 cm × 4 cm, run:
xsltproc --stringparam page.width 10cm \
--stringparam page.height 4cm ...To set these values in a customization file, add:
<xsl:param name="page.width">10cm</xsl:param>
<xsl:param name="page.height">4cm</xsl:param>The following figure illustrates these parameters:
Figure: Page layout parameters
Copyright © 2009 Millin Verlag
You may print the online version for your private use.
Otherwise, this chapter from "DocBook-XML: Medienneutrales und plattformunabhängiges Publizieren" is subject to the same provisions as the printed edition: the work, including all its parts, is protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Millin Verlag, Siebengebirgsring 36, 53797 Lohmar, info(at)millin.de
back to top