xls-fo fop 0.94 使用 keep-together 和 wrap-option="wrap"; [英] xls-fo fop 0.94 Using the keep-together with wrap-option="wrap"

查看:25
本文介绍了xls-fo fop 0.94 使用 keep-together 和 wrap-option="wrap";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

In xls-fo fop 0.94 Using the keep-together along with with wrap-option="wrap" ignores the wrap option ? Is there a way to make them both work?

   <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>

推荐答案

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

keep-together="always" implicitely sets keep-together.within-line="always" which basically forbids line breaking. Use keep-together.within-column="always" instead!

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

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

BWT, overflow="scroll" is not supported by FOP. That's only relevant for XSL-FO in browser mode. You can't scroll on paper.

这篇关于xls-fo fop 0.94 使用 keep-together 和 wrap-option="wrap";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆