Page 1 of 1

Table Widths PDF Output

Posted: Wed Nov 20, 2013 6:48 pm
by bthomas22
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?)

Re: Table Widths PDF Output

Posted: Thu Nov 21, 2013 3:52 pm
by sorin_ristache
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