FOPのページ高さと幅のデフォルト値を変更する
FOP*1のデフォルトはLetterを使っているようで,PDFに変換されたときにA4の端が欠けてしまう.
A4に修正するにはfop.xconf
<!-- Default page-height and page-width, in case value is specified as auto --> <default-page-settings height="279mm" width="210mm"/>
(追記:2009/5/20)
実はうえの修正だけではダメで,basic-settings.xslも修正する必要がある.
<xsl:variable name="page-width">210mm</xsl:variable> <xsl:variable name="page-height">297mm</xsl:variable>
*1:0.95です