Tables border distort in pdf output

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
dpksaini89
Posts: 48

Tables border distort in pdf output

Thu May 17, 2018 3:35 pm

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: 204

Re: Tables border distort in pdf output

Fri May 18, 2018 11:46 am

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: 48

Re: Tables border distort in pdf output

Fri May 18, 2018 12:12 pm

Done please check email. With subject same as the ticket header.
dpksaini89
Posts: 48

Re: Tables border distort in pdf output

Fri May 18, 2018 12:13 pm

I am using DITA Map - WYSIWYG
Costin
Posts: 388

Re: Tables border distort in pdf output

Mon May 21, 2018 5:44 pm

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: 48

Re: Tables border distort in pdf output

Tue Jun 12, 2018 1:36 pm

Kindly update.
Costin
Posts: 388

Re: Tables border distort in pdf output

Tue Jun 12, 2018 1:44 pm

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: 48

Re: Tables border distort in pdf output

Wed Jun 20, 2018 12:14 pm

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: 275

Re: Tables border distort in pdf output

Wed Jun 20, 2018 2:46 pm

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: 275

Re: Tables border distort in pdf output

Wed Jun 20, 2018 3:08 pm

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: 275

Re: Tables border distort in pdf output

Wed Jun 20, 2018 4:09 pm

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

Return to “Common Problems”

Who is online

Users browsing this forum: No registered users and 2 guests