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

Post here questions and problems related to editing and publishing DITA content.
OxUser
Posts: 18
Joined: Tue Mar 12, 2013 1:39 am

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

Post 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.
Radu
Posts: 9053
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Anandnr47
Posts: 1
Joined: Tue Apr 02, 2019 1:43 pm

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

Post 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.
Radu
Posts: 9053
Joined: Fri Jul 09, 2004 5:18 pm

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

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