How can I fix the column widths in a table using Content Exporter?

Deleted user March 26, 2018

I want to fix the column widths in a table using Content Exporter (to PDF), as it is the widths are all over the place, even setting them as fixed in Confluence.

Any suggestions?

1 answer

0 votes
Sarah
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 26, 2018

Hi Liz,

When a table is created on a confluence page and you size the columns in the editor by clicking and dragging the column, confluence will modify the HTML markup by adding column width in a <colgroup> section to apply formatting.

It seems that PDF export process ignores the widths defined in the <colgroup> section.

* Try to set table to 'responsive'

* Modify the source using source editor by removing or commenting out the <colgroup> section, and manually add the column widths to the row that contains the table header <th> tags (if it exists), or to the first table row with <td> tags. 

* Add below workaround on the PDF stylesheet

{code:borderStyle=solid}

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

{code} 

These styles will set the table width properly so that it doesn't overflow off the page in the export file.

Your issue seems to be hitting this bug CONFSERVER-54275 

Best Regards,
Sarah Rezkalla

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events