表格单元,其内容跨越两页,行跨度> 1

时间:2013-09-24 11:23:42

标签: xsl-fo apache-fop

(使用基于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中有一个小文本,它不会将' lime '放到第二页

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

是我还是渲染器没有达到工作要求? : - )

0 个答案:

没有答案