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

Export page to PDF truncates tables in the new editor

    XMLWordPrintable

    Details

      Description

      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

      1. Insert into a page a "Columns" macro, select two columns;
      2. Insert a table into the page (even a single column table will do);
      3. Publish the page
      4. 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
        }

       

       

        Attachments

        1. Exported PDF.png
          Exported PDF.png
          192 kB
        2. Exported PDF.png
          Exported PDF.png
          192 kB
        3. Screen Shot 2019-04-10 at 11.01.28.png
          Screen Shot 2019-04-10 at 11.01.28.png
          134 kB
        4. Screen Shot 2019-04-10 at 11.17.49.png
          Screen Shot 2019-04-10 at 11.17.49.png
          131 kB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              halegra Helton A.
              Votes:
              24 Vote for this issue
              Watchers:
              21 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: