Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-25233

Tables that contains short strings are exported to full-width in PDF exports

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      Summary

      After updating from 4.1.9 to 4.2 the pdf export is not working properly.
      All tables have 100% width in pdf export.

      Steps to Reproduce

      1. Create a new page
      2. Create a table with 2 columns
      3. Paste short strings into each of the column
      4. Save the page
      5. Export to PDF

      Expected Results

      Each column width should be based on the contents.

      Actual Results

      The exported content is a full width column, that has same width.

      Workaround

      table
      {
         table-layout:auto !important;
         width: auto !important;
      }
      

      If you have problems with content being cut of on your generated pdf pages the the following may help:

      table
      {
         table-layout:auto !important;
         width: auto !important;
         max-width: 100% !important
      }
      

      Note:
      Applying the workaround will result CONF-31874 in Confluence 5.5

      Attachments

        1. conf-tables.png
          conf-tables.png
          21 kB
        2. conf-tables-pdf-export.png
          conf-tables-pdf-export.png
          30 kB
        3. pdfexport_maurice.png
          pdfexport_maurice.png
          86 kB
        4. pdfexport_maurice2.png
          pdfexport_maurice2.png
          88 kB
        5. pdf-tables.PDF
          2 kB

        Issue Links

          Activity

            People

              ndang Nguyen Dang
              6e38f08e998d Rene G
              Votes:
              50 Vote for this issue
              Watchers:
              67 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: