Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Table width changes when exporting to PDF

Madhumathi lees August 12, 2020

My tables look the same size in confluence. But when I export my space to pdf in landscape mode, all my tables have diferent size depending on the content of that table. I have looked around so much . I tried making the layout of my table from responsive to fixed width and adding my pdf stylesheet , the following code,

@table
{
table-layout:fixed !important;
width: fixed !important;
}

But no changes are being made.

2 answers

1 accepted

1 vote
Answer accepted
Madhumathi lees August 13, 2020

I found out myself. It wasn't anything to do with the layout in confluence. Rather it was the below code I had to add in pdf stylesheets under look and feel.

table.fixedTableLayout {
table-layout: fixed !important;
width: 98% !important;
}
 
Joshua Sneed Contegix
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 13, 2020

Hi Madhumathi,

Thanks for following up and letting us know what resolved your problem. Cheers!

0 votes
Joshua Sneed Contegix
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 12, 2020

Hi Madhumathi,

Try selecting the table, setting it to Fixed width, sizing it appropriately, and then exporting. Confluence tables are set to Responsive by default and exporting pages can cause formatting issues in general. Combining the two can have odd affects. Cheers!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events