Page 1 of 1

Table border lines do not appear on the inside of tables in the PDF output

Posted: Sat Mar 16, 2013 12:55 am
by OxUser
The table borders do not appear inside of the tables when they are output to PDF. The external table border DOES appear, but the internal border lines do not. In other words, the table has a box border around it, but no lines inside it.

Is there some way I can add the border lines inside the table so they can be seen in the PDF output?

BTW - the internal tables border lines DO appear in the HTML output of the same file.

Re: Table border lines do not appear on the inside of tables in the PDF output

Posted: Mon Mar 18, 2013 11:30 am
by Radu
Hi,

Oxygen uses the DITA Open Toolkit processor to publish DITA content to XHTML, PDF and other output formats.
The DITA specification does not seem to make it very clear if by default the table column separator lines should be drawn or not.
To force this, you can edit each <colspec> attribute from the <table> and set to it the attribute colsep="1".

Another workaround, according to this issue:

https://github.com/dita-ot/dita-ot/issues/1165

You can change in the XSL:

OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/plugins/org.dita.pdf2/xsl/fo/tables.xsl

the default values for the parameters table.rowsep-default and table.colsep-default to be 1.

Regards,
Radu

Re: Table border lines do not appear on the inside of tables in the PDF output

Posted: Tue Apr 02, 2019 2:15 pm
by Anandnr47
Dear Radu,

I have generated a classic webhelp output however, the tables were not appearing in the output. The tabular structure was maintained however there were no visible lines.

I have set colsep and rowsep as '1' in bot table properties and in Author view.

<table frame="all" rowsep="1" colsep="1" id="table_rdn_zf4_sgb">
<title>Test</title>
<tgroup cols="2">
<colspec colname="col1" colnum="1" colwidth="1*" colsep="1" rowsep="1"/>
<colspec colname="col2" colnum="2" colwidth="1*" colsep="1" rowsep="1"/>


Please suggest a remedy for the same.

Re: Table border lines do not appear on the inside of tables in the PDF output

Posted: Thu Apr 04, 2019 12:30 pm
by Radu
Hi Anand,

Your post is not related to this forum thread.
But indeed from what I asked my colleagues there is a small bug in the WebHelp generation related to table borders not appearing.
If you contact us via email (support@oxygenxml.com) one of my colleagues could give you a custom CSS stylesheet to apply in order to overcome the problem.

Regards,
Radu