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?
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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.