Page 1 of 1

Dynamic table column width in xsl fo!

Posted: Mon Feb 01, 2016 9:15 am
by mu258770
Hi team,

I would like to provide dynamic column width for table column in xsl:fo for the PDF output.

My table has two columns, in which one contain image and the other will be its description. But I would like to get dynamic column width for the second column. Like if the input image is 60mm wide, then the second column should start from 65mm.

Currently, I am giving it as below,

Code: Select all

                         <fo:table-column column-width="65mm"/>
                        <fo:table-column column-width="proportional-column-width(1)"/>



But, the image width can be 50 mm sometimes. In this case the table column won't look good. The second column should start from 55 mm in this case.

Please suggest a way forward.

Thanks and regards,
Shabeer

Re: Dynamic table column width in xsl fo!

Posted: Mon Feb 01, 2016 3:28 pm
by Radu
Hi Shabeer,

Not sure what to suggest you.
Maybe you could register and ask around on the Apache FOP users list:

https://xmlgraphics.apache.org/fop/maillist.html

Regards,
Radu