Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-59266

Table is truncated in PDF export

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • Page - Export
    • None

    Description

      Summary

      When having a large table in a page, it's truncated when export into PDF export.

      Environment

      • Confluence Cloud

      Steps to Reproduce

      1. Create a page, add a table into the page
      2. Put some contents on the table until it stretches to the maximum width
      3. Save the page
      4. Export the page into PDF

      Expected Results

      Full table is showing on the PDF file.

      Actual Results

      The table is not adjusted. Left of the table is truncated.

      Workaround

      Manually set the maximum width of tables for the PDF export:

      1. Go to Space Tools > Look and Feel > PDF Stylesheet
      2. Edit the PDF Export Stylesheet and add these lines
        table
        {
           table-layout:auto !important;
           width: auto !important;
           max-width: 90% !important
        }
        

      Note that you would need to have space admin permission to perform the workaround.

      Note

      If your table is copied from other content to Confluence editor, the table might contain inline style like as below:

      <table class="wrapped fixed-table"><colgroup><col style="width: 310.0px;" /><col style="width: 304.0px;" /><col style="width: 313.0px;" /><col style="width: 349.0px;" /></colgroup>
      

      You can verify this by "View Storage Format" and search "<table" on the page. If this is your case, unfortunately, there's no easy way to tweak the rendering glitch.

      One of the ways to remove these styles is once export the page to word format and then import the word file to Confluence page. However, in many cases, you have to fix the alignment after importing the word file since these pages tend to contain complex elements.

      See also How to normalize HTML tags in page for more detail.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cteh Ting (Chiou Ting Teh)
              Votes:
              10 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: