Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xls-fo fop 0.94 Using the keep-together with wrap-option="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>
like image 731
Thunder Avatar asked Feb 09 '10 08:02

Thunder


1 Answers

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

See also: http://xmlgraphics.apache.org/fop/faq.html#keep-together

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

like image 119
Jeremias Märki Avatar answered Nov 15 '22 08:11

Jeremias Märki