Dynamic table column width in xsl fo!
Posted: Mon Feb 01, 2016 9:15 am
Code: Select all
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