PDF export is changing html table column's width

The html tables are exported assigning equal width for each column, even though the original html table's columns have a different width. Is there any work around this? Right now I have to export to a word and a pdf documents and print the pages from each file that look acceptable.

4 answers

0 votes

Hello there, I'm not sure if is it is the same problem, but, we have a Feature Request talking about table column's width in export to pdf. Could you please take a look at the Feature Request?



Hi Giuliani:

It is related with formatting, but in the features requests that you sent me they are mentioning column borders and header shadows, for my case is the column width. I am attaching an image in case this helps.

Thank you,


Hi Mary,

You can fix this in the PDF stylesheet by adding the following CSS:







Sounds like you're hitting this bug: https://jira.atlassian.com/browse/CONF-25567

The workaround is to add this CSS code to the custom PDF Stylesheets:

   table-layout:auto !important;
   width: auto !important;

Changing the table width appears to affect the note macro in my PDFs. :-(

I've tried using both of the following and niether, either individually or combined, have made any diference. I can't see anything in the user info that helps, and I have tried both to find it and use what's there.

/*A4-sized pages in landscape orientation are 297 mm wide by 210 mm long*/
size: 297mm 210mm;
table-layout:auto !important;
width: auto !important;

Does anyone else have any advice on how to get tables to print properly? I'm also using a two column layout added from the Page Layout button, this also doesn't work.


Some other layout properties such as margins may cause the tables to come out in portrait on landscape pages (especially when you're switching to landscape for tables). Try experimenting with margins, etc.

You can force column widths by placing discreet characters such as underscores, coloured to match the shading, in the header boxes after the header text.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

477 views 3 18
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you