Page 1 of 1

Tables border distort in pdf output

Posted: Thu May 17, 2018 3:35 pm
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

Re: Tables border distort in pdf output

Posted: Fri May 18, 2018 11:46 am
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

Re: Tables border distort in pdf output

Posted: Fri May 18, 2018 12:12 pm
by dpksaini89
Done please check email. With subject same as the ticket header.

Re: Tables border distort in pdf output

Posted: Fri May 18, 2018 12:13 pm
by dpksaini89
I am using DITA Map - WYSIWYG

Re: Tables border distort in pdf output

Posted: Mon May 21, 2018 5:44 pm
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

Re: Tables border distort in pdf output

Posted: Tue Jun 12, 2018 1:36 pm
by dpksaini89
Kindly update.

Re: Tables border distort in pdf output

Posted: Tue Jun 12, 2018 1:44 pm
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

Re: Tables border distort in pdf output

Posted: Wed Jun 20, 2018 12:14 pm
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.

Re: Tables border distort in pdf output

Posted: Wed Jun 20, 2018 2:46 pm
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

Re: Tables border distort in pdf output

Posted: Wed Jun 20, 2018 3:08 pm
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

Re: Tables border distort in pdf output

Posted: Wed Jun 20, 2018 4:09 pm
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

Re: Tables border distort in pdf output

Posted: Thu May 21, 2020 12:55 pm
by julien_lacour
Hello,

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

Regards,
Julien