Table Widths PDF Output

bthomas22
Posts: 12
Joined: Fri Nov 01, 2013 8:53 pm

Table Widths PDF Output

Post by bthomas22 » Wed Nov 20, 2013 6:48 pm

I'm running Oxygen 15, and I'm testing CALS table widths. Why does it always print table block to margin tables regardless of proportional or dynamic? If I change pgwide to 1, it print margin to margin. Do you have to do stylesheet work to actually make the tables be dynamic (width relative to string in table?)

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: Table Widths PDF Output

Post by sorin_ristache » Thu Nov 21, 2013 3:52 pm

Hello,

table/@pgwide = 1 means margin to margin (page width). If you want dynamic width you should use table/@pgwide = 0. For example in the DITA XHTML transformation you just omit the pgwide attribute altogether to get dynamic column width, but it does not work in PDF output, so yes, some XSLT stylesheet work needs to be done. The stylesheets for PDF output are located in:

Code: Select all

[Oxygen-install-dir]\frameworks\dita\DITA-OT\plugins\org.dita.pdf2\xsl
I think you can start with the template:

Code: Select all

    <xsl:template name="processCharAlignment">
from file:

Code: Select all

[Oxygen-install-dir]\frameworks\dita\DITA-OT\plugins\org.dita.pdf2\xsl\fo\tables.xsl

Regards,
Sorin

Post Reply