Dynamic table column width in xsl fo!

Here should go questions about transforming XML with XSLT and FOP.
mu258770
Posts: 105

Dynamic table column width in xsl fo!

Mon Feb 01, 2016 9:15 am

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
Radu
Posts: 5380

Re: Dynamic table column width in xsl fo!

Mon Feb 01, 2016 3:28 pm

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 2 guests