7

在 xls-fo fop 0.94 中使用 keep-together 以及 wrap-option="wrap" 会忽略 wrap 选项?有没有办法让它们都工作?

   <fo:table-row border="1pt solid black" keep-together="always">
        <fo:table-cell>
            <fo:block overflow="scroll" wrap-option="wrap">
          This is a long text It is desired that this text be wrapped in the table cell but just can not make it happen!
            </fo:block>
        </fo:table-cell>
   </fo:table-row>
4

1 回答 1

8

keep-together="always" 隐式设置 keep-together.within-line="always" 基本上禁止换行。改用 keep-together.within-column="always" !

另见:http: //xmlgraphics.apache.org/fop/faq.html#keep-together

BWT,overflow="scroll" 不受 FOP 支持。这仅与浏览器模式下的 XSL-FO 相关。你不能在纸上滚动。

于 2010-02-09T16:11:53.490 回答