Customize Table in Confluence PDF Export

Hi there,

i would like to edit the global PDF Export Template in Confluence, so that tables will fit to the page.

At the moment, bigger tables will be cut off the page on the right side, because single columns won't do a break.

i tried with

table { 
    table-layout:fixed;
}

but this affects only smaller tables and changes their width to the page.

Bigger tables still get cut off on the right side and will not be adjusted to the page size.

Does anybody know how to do this?

 

Thanks in advance!

Alex

1 answer

0 vote

HI Alexander,

I tried the following on my PDF stylesheet:

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

This allowed all 13 columns to be displayed on a single page and none were cut off as they would have been previously. Perhaps this will help you?

Regards,

Shannon

Hi Shannon,

doesn't work with my tables :-(

But i tried a bit with test tables and could find the "error". The problem is that if you have a long text in one column without space between the text (i.e. an URL), the text will have no break in the pdf export.

I attached two screenshots. One is the table in Confluence, doing automatic break in column 2. The other is the pdf export from that page. Column 2 will have no break in it, so it is not able to fix the table to the page.

Is this a bug, or am i able to do a workaround?

Regards,

Alex

confluence_table.JPG

confluence_table_export.JPG

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

365 views 20 10
Join discussion

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