-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
28
-
Severity 3 - Minor
-
Summary
Exporting a page to PDF, that contains a "Columns" macro with two or more columns and containing one or more tables, will result in truncated tables (mainly on the left margin of the table).
Environment
- "Columns" macro with two or more columns;
- A Table;
- New Confluence Editor.
Steps to Reproduce
- Insert into a page a "Columns" macro, select two columns;
- Insert a table into the page (even a single column table will do);
- Publish the page
- Click (...) drop-down menu > Export to PDF
Expected Results
- PDF file should reproduce the same formatting as the original document.
Actual Results
- Tables are truncated on the left margin, as can be seen in the next screenshot.
Notes
- There were some suggestions on other tickets regarding editing the PDF stylesheet on Space Settings, but I've tried the following workarounds but none of them worked to circumvent this BUG.
@page { /*A4-sized pages in landscape orientation are 297 mm wide by 210 mm long*/ size: 297mm 210mm; }
table { table-layout:auto !important; width: auto !important; max-width: 90% !important }
table { table-layout:auto !important; width: auto !important; }
Workaround
- Paste this on the space settings for PDF stylesheet
@page { size: 210mm 297mm; /* A4, change for US letter */ margin: 18mm 20mm; } div.wiki-content { width: 150mm !important; align-self: center !important; margin: 20px 30mm 20px 20px !important; line-height: 1.4 !important }
- relates to
-
CONFCLOUD-52379 Table cut off on PDF Export
- Closed
-
CONFCLOUD-59266 Table is truncated in PDF export
- Closed
-
CONFCLOUD-65937 Column resize does not obey for export pdf
- Closed
-
CONFSERVER-57901 Left table border is shown with different width in exported PDF
- Long Term Backlog
(1 mentioned in)