This is the documentation for an older version of Scroll PDF Exporter. Here you can view the most up-to-date version of the Scroll PDF Exporter documentation.

How Can I Deal with Wide Tables?

Question

I have some wide tables on my Confluence pages, how can I deal with them to export them properly in the exported PDF?

Answer

Non-Breakable Whitespace

The table scaling algorithm can't scale your columns down very good if you have non-breakable spaces in them. Replace any non-breakable whitespace ( ) with normal whitespace.

Font Size in Tables

To reduce the font size in tables, add the following code to your CSS in the Content Formatting section:

Resizing Fonts in Tables
div.tablewrap p, div.tablewrap > table li {
font-size: x-small !important;
}

List Padding

To reduce the padding of lists inside tables (Keep the left padding as otherwise the numbers will be outside of the column), add the following code to your CSS in the Content Formatting section:

List Padding inside Tables
div.tablewrap > table ol, div.tablewrap > table ul  {
padding-left: 1.5em;
margin: 0px;
}

Table Cells Padding

To change the default padding for table cells (5px), add the following code to your CSS in the Content Formatting section:

Table Cells Padding
table thead tr td, 
table tbody tr td { 
padding: 1px; 
}

Word-Wrap

To use word-wrap in tables, add the following code to your CSS in the Content Formatting section:

Word-Wrapping inside Tables
div.tablewrap p,
div.tablewrap > table li {
    word-wrap: break-word;
}

Note

This of course results in tables spread over the complete page width and all columns having the same width.

This is a workaround until

Error rendering macro 'jira'

Unable to locate Jira server for this macro. It may be due to Application Link configuration.

is fixed.