This document explains how to configure the default page size for both the on-the-fly PDF and for Daisy Books.
Assuming a daisy install (i.e. no custom book publications), the
configuration file to change the page size is located here:
It is rarely a good idea to edit configurations that are located in $DAISY_HOME to instead of editing this file, we will copy the entire pdf directory in our wikidata directory. This will give us a local copy and will ensure that any modifications we mare are retained whenever we update to a newer version of Daisy. The pdf directory should be copied in this location: wikidata/books/publicationtypes/
Once copied, open the and customized the html-to-xslfo.xsl document by modifying <fo:layout-master-set> so that the default paper size match what you want. In the example below, we are using the dimensions of the US Letter format:
<fo:layout-master-set> <fo:simple-page-master master-name="frontpage" page-height="29.7cm" page-width="21cm" margin-top="1cm" margin-bottom="1cm" margin-left="2.5cm" margin-right="2cm"> <fo:region-body region-name="body" margin-bottom="1.5cm" margin-top="1.5cm"/> </fo:simple-page-master> [...]
The same changes above have to be made on a few other the other elements under the <fo:layout-master-set> element. Make sure to apply the same changes throughout.
For on the fly pdf production have a look for documentlayout-xslfo.xsl in wikidata/resources/skins/<yourskin>/xslt/.
If you are not using a custom skin, you really should create one by following the instructions here.
If you are using a custom skin but you can't find the documentlayout-xslfo.xsl file, copy it from the default skin (DAISY_HOME/daisywiki/webapp/daisy/resources/skin/default/xsl).
In documentlayout-xslfo.xsl, n change the page masters as you did for books.