0
我想顯示在PDF中tickbox並試圖做到這一點的:FOP - 防止塊倒塌
<fo:table-row height="10pt">
<fo:table-cell>
<fo:block line-height="10pt" text-align="center" border-style="solid" border="1pt" white-space-collapse="false">
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block/>
</fo:table-cell>
</fo:table-row>
而是獲得一個盒子,我得到一個線即框寬度1點的高度。 我如何強制FOP,而不是崩潰塊?我使用Apache的Fop的1.0
UPDATE1:
這工作:
<fo:block text-align="left">
<fo:table text-align="left" table-layout="fixed">
<fo:table-column column-width="10pt"/>
<fo:table-column column-width="10pt"/>
<fo:table-body>
<fo:table-row height="10pt">
<fo:table-cell height="10pt">
<fo:block line-height="10pt" font-family="$_Fontfamily"
font-size="8pt">$row.getValue().get(0)
</fo:block>
</fo:table-cell>
<fo:table-cell height="10pt" width="10pt">
<fo:block text-align="center" border-style="solid" border="1pt"/>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
我想在第二單元格邊框。 如果我把表格插入第二塊,然後它工作正常。
遺憾的是它並沒有:-(幫助 – HamoriZ 2011-03-24 13:24:14
由於我不知道你的表雖然我們使用0.95 – 2011-03-24 13:30:31
謝謝,如果我在表格中加入一個表格,但我想用一個簡單的結構來解決這個問題 – HamoriZ 2011-03-24 13:54:01