0

(使用基于 FOP 1.0 的渲染器)

我试图让一个单元格愉快地流到两页上,同时它也设置为跨越几行

这是一个高度简化的代码摘录:

<fo:table height="210mm" width="100%">
<fo:table-column column-number="1" column-width="127mm"/>
<fo:table-column column-number="2" column-width="10mm"/>
<fo:table-column column-number="3" column-width="160mm"/>

<fo:table-body>
    <fo:table-row height="100mm">
        <fo:table-cell background-color="lime" number-rows-spanned="6">
            <fo:block>
                lots & lots of text
            </fo:block>
        </fo:table-cell>
        <fo:table-cell background-color="blue"/>
        <fo:table-cell>
            <fo:external-graphic scaling="non-uniform" height="100mm" width="160mm" src="./image1.jpg"/>
        </fo:table-cell>
    </fo:table-row>
    <fo:table-row height="10mm"/>
    <fo:table-row height="100mm">
        <fo:table-cell/>
        <fo:table-cell>
            <fo:external-graphic scaling="non-uniform" height="100mm" width="160mm" src="./image2.jpg"/>
        </fo:table-cell>
    </fo:table-row>
    <!-- have tried and removed break-before="page" -->
    <fo:table-row height="100mm">
        <fo:table-cell/>
        <fo:table-cell>
            <fo:external-graphic scaling="non-uniform" height="100mm" width="160mm" src="./image3.jpg"/>
        </fo:table-cell>
    </fo:table-row>
    <fo:table-row height="10mm"/>
    <fo:table-row height="100mm">
        <fo:table-cell/>
        <fo:table-cell>
            <fo:external-graphic scaling="non-uniform" height="100mm" width="160mm" src="./image4.jpg"/>
        </fo:table-cell>
    </fo:table-row>
</fo:table-body>

在单元格 1 中有一点文字,它不会将“石灰”放置到第二页

有超过一页的文本 - 我根本没有得到输出!

是我还是渲染器不能胜任这项工作?:-)

4

0 回答 0