PDF の生成に Apache FOP 1.0 を使用しています。INFO 警告が表示されないように、テーブルの end-indent を拡張したい:
情報: fo:table は、inline-progression-dimension で使用可能な部屋よりも幅が広くなっています。過度に制約されたジオメトリ ルールに基づいて end-indent を調整する (XSL 1.1、ch. 5.3.4)。
以下は、表の幅がオーバーフローしている表です。
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master
master-name="CommonMasterLayout"
page-height="11in" page-width="8.5in"
margin-top=".5in" margin-bottom=".5in"
margin-left="1in" margin-right="1in">
<fo:region-body region-name="middle" margin-bottom=".75in" margin-top=".75in"/>
<fo:region-before region-name="top" extent=".75in"/>
<fo:region-after region-name="bottom" extent=".5in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="CommonMasterLayout">
<fo:flow flow-name="middle">
<fo:block>
<fo:table end-indent="-0.5in" width="100%" table-layout="fixed">
<fo:table-column column-width="2.033in"/>
<fo:table-column column-width="4.616in"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell border="0.5pt solid black">
<fo:block>Some text that will flow over to the neighboring cell</fo:block>
</fo:table-cell>
<fo:table-cell border="0.5pt solid black">
<fo:block>Other text within a box</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
ページの幅は 6.5 インチ、表の幅は 6.649 インチで、明らかに寸法を超えています。両側に1インチのパディングがあるので、右側を少し拡張したい.
テーブル属性end-indent="-0.5in"を使用すると、列幅が変更されたかのように、セル内のテキストが隣接セルにオーバーフローします。これに正しい属性を使用していますか?