Tables border distort in pdf output

Having trouble installing Oxygen? Got a bug to report? Post it all here.
dpksaini89
Posts: 66
Joined: Thu Feb 08, 2018 2:44 pm

Tables border distort in pdf output

Post by dpksaini89 »

Hi the table borders are getting distorted in the pdf output if I vary the width of the columns.
Please help.
In Editor
Image
In Pdf
Image
ionela
Posts: 402
Joined: Mon Dec 05, 2011 6:08 pm

Re: Tables border distort in pdf output

Post by ionela »

Hello,

Could you please specify what transformation scenario do you currently use: DITA Map PDF or DITA Map - WYSIWYG?
To reproduce this problem on our side, could you please us a minimal valid sample source file on our support email address (support [AT] oxygenxml [DOT] com) to further investigate this issue.

Regards,
Ionela
Ionela Istodor
oXygen XML Editor and Author Support
dpksaini89
Posts: 66
Joined: Thu Feb 08, 2018 2:44 pm

Re: Tables border distort in pdf output

Post by dpksaini89 »

Done please check email. With subject same as the ticket header.
dpksaini89
Posts: 66
Joined: Thu Feb 08, 2018 2:44 pm

Re: Tables border distort in pdf output

Post by dpksaini89 »

I am using DITA Map - WYSIWYG
Costin
Posts: 829
Joined: Mon Dec 05, 2011 6:04 pm

Re: Tables border distort in pdf output

Post by Costin »

Hi dpksaini89,

We managed to reproduce the issue, based on the sample you provided.
Therefore, I have just logged it in our internal tracking system so this will be investigate and we will get back to you as soon as we have a solution.

Best Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
dpksaini89
Posts: 66
Joined: Thu Feb 08, 2018 2:44 pm

Re: Tables border distort in pdf output

Post by dpksaini89 »

Kindly update.
Costin
Posts: 829
Joined: Mon Dec 05, 2011 6:04 pm

Re: Tables border distort in pdf output

Post by Costin »

Hello,

The issue is still open.
I can not know when exactly the development team will implement a fix, but, as I specified, we will notify this thread when this will occur.

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
dpksaini89
Posts: 66
Joined: Thu Feb 08, 2018 2:44 pm

Re: Tables border distort in pdf output

Post by dpksaini89 »

hi this has taken a very long time now.
I am facing issue due to this on regular basis.
This is a very basic problem, kindly fix it asap.
Dan
Posts: 501
Joined: Mon Feb 03, 2003 10:56 am

Re: Tables border distort in pdf output

Post by Dan »

The columns have a fixed width specified, something like 30pt, 400px, etc.. The problem is that when they sum up, the result is smaller than the border applied to the table.

Until we fix the problem, please use proportional widths as a workaround.

For example, if you have

Code: Select all

colspec width="100pt"
colspec width="250pt"
colspec width="300pt"
You could use the values as proportions:

Code: Select all

colspec width="100*"
colspec width="250*"
colspec width="300*"
Or:

Code: Select all

colspec width="1*"
colspec width="2*"
colspec width="3*"
We'll be back soon with a better solution.
Thank you,
Dan
Dan
Posts: 501
Joined: Mon Feb 03, 2003 10:56 am

Re: Tables border distort in pdf output

Post by Dan »

A better solution is to add to your customization CSS the following rule:

Code: Select all


 *[class~="topic/table"] > *[class~="topic/tgroup"] {         
table-layout: auto;
}
This makes the table automatically stretch as much as the columns.

We will investigate further the problem with the fixed layout table and specified column widths.

Many regards,
Dan
Dan
Posts: 501
Joined: Mon Feb 03, 2003 10:56 am

Re: Tables border distort in pdf output

Post by Dan »

We fixed the problem, it will enter the next major version.
Let us know if the above CSS snippet is working for you, if not, we can provide a Chemistry PDF CSS processor nightly build.

Thank you for the feedback,
Dan
julien_lacour
Posts: 495
Joined: Wed Oct 16, 2019 3:47 pm

Re: Tables border distort in pdf output

Post by julien_lacour »

Hello,

Oxygen 22.1 is now available, inside there is the fix for the table border problem.

Regards,
Julien
Post Reply