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

      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

        1. conf-tables.png
          21 kB
          Rene G
        2. conf-tables-pdf-export.png
          30 kB
          Monique Khairuliana
        3. pdfexport_maurice.png
          86 kB
          Maurice Pasman
        4. pdfexport_maurice2.png
          88 kB
          Maurice Pasman
        5. pdf-tables.PDF
          2 kB
          Rene G

            [CONFSERVER-25233] Tables that contains short strings are exported to full-width in PDF exports

            Hi Everyone, the issue specified on this bug ticket is specifically about when there's two columns with short content, exported PDF view will be that those column will be full width, as seen in the screenshots in the summary section. This issue has since been fixed in Confluence version 5.6.

            tom.hardy1140083732, the corresponding Confluence Cloud bug ticket should be here: CONFCLOUD-25233. If you're still seeing this issue, please feel free to notify our friendly cloud supporters and they will be able to review the issue.

            theolizard, jacob35, I believe the issue that you're experiencing is described in this bug CONFSERVER-54275, which has been fixed since Confluence 6.13.0. Please upgrade to that version or above to avoid this issue.

            marcos.sanchez.gonzalez.96313877025, jholdsworth Let us know more details on what you're experiencing. What does the table look like in Confluence editor view? Is it like what theolizard mentioned? jholdsworth, what's the Confluence version?

            Monique Khairuliana (Inactive) added a comment - Hi Everyone, the issue specified on this bug ticket is specifically about when there's two columns with short content, exported PDF view will be that those column will be full width, as seen in the screenshots in the summary section. This issue has since been fixed in Confluence version 5.6. tom.hardy1140083732 , the corresponding Confluence Cloud bug ticket should be here: CONFCLOUD-25233 . If you're still seeing this issue, please feel free to notify our friendly cloud supporters and they will be able to review the issue. theolizard , jacob35 , I believe the issue that you're experiencing is described in this bug CONFSERVER-54275 , which has been fixed since Confluence 6.13.0. Please upgrade to that version or above to avoid this issue. marcos.sanchez.gonzalez.96313877025 , jholdsworth Let us know more details on what you're experiencing. What does the table look like in Confluence editor view? Is it like what theolizard mentioned? jholdsworth , what's the Confluence version?

            Just wasted 1 hour trying to get the CCS work arounds to work. Nothing works, tables are coming out terribly, its so disappointing. 

            Jonathan Holdsworth added a comment - Just wasted 1 hour trying to get the CCS work arounds to work. Nothing works, tables are coming out terribly, its so disappointing. 

            The CSS workaround doesn't work for us.

            When we work with tables in Confluence it works fine and looks pretty but when be export, tables get really messed up and lose all its format and properties. Doesn't matter if we use Responsive or Fixed Width tables.

            Using Confluence 6.14.2

            Marcos Sanchez added a comment - The CSS workaround doesn't work for us. When we work with tables in Confluence it works fine and looks pretty but when be export, tables get really messed up and lose all its format and properties. Doesn't matter if we use Responsive or Fixed Width tables. Using Confluence 6.14.2

            Jacob Samson Schlüter added a comment - - edited

            Same problem as reported by Guillaume Payet in previous comment. 2 columns looking good at the Confluence page; but when exported it is equally sized unfortunately.

            Using Confluence 6.10.0

            Jacob Samson Schlüter added a comment - - edited Same problem as reported by Guillaume Payet in previous comment. 2 columns looking good at the Confluence page; but when exported it is equally sized unfortunately. Using Confluence 6.10.0

            Guillaume Payet added a comment - - edited

            Does that CSS affect the single-page exports?

            This issue also relates to single-page exports and nothing works. The doc says nothing can be done (second bullet point at the top).

            I have several tables with a single-word column next to a column with paragraphs, as a web page, it looks OK but on the export, the columns are equally sized.

            P.S.: Using Confluence 6.8.0.

            Guillaume Payet added a comment - - edited Does that CSS affect the single-page exports? This issue also relates to single-page exports and nothing works. The doc says nothing can be done (second bullet point at the top). I have several tables with a single-word column next to a column with paragraphs, as a web page, it looks OK but on the export, the columns are equally sized. P.S.: Using Confluence 6.8.0.

            Using this table format worked for our issues on v6.8.1

            table
            {
            table-layout: auto !important;
            width: auto !important;
            word-wrap: normal;
            }

            trent-dailey added a comment - Using this table format worked for our issues on v6.8.1 table { table-layout: auto !important; width: auto !important; word-wrap: normal; }

            trent-dailey added a comment - - edited

            We are also having this issue after upgrading to v6.8.1.  The workarounds do format the column widths but it is not correctly auto re-sizing them.

             

            trent-dailey added a comment - - edited We are also having this issue after upgrading to v6.8.1.  The workarounds do format the column widths but it is not correctly auto re-sizing them.  

            Tom added a comment - - edited

            This bug appears to have resurfaced again as of 6/14/2018 on Cloud .

            Neither of the two workaround code snippets above are working.

            Tom added a comment - - edited This bug appears to have resurfaced again as of 6/14/2018 on Cloud . Neither of the two workaround code snippets above are working.

            Also exists for Server Version 6.3.3.

            Andreas Peretzki added a comment - Also exists for Server Version 6.3.3.

            This bug is also exists in Confluence server 6.3.1. Workaround works fine.

            Pavel Nakonechnyi added a comment - This bug is also exists in Confluence server 6.3.1. Workaround works fine.

              ndang Nguyen Dang
              6e38f08e998d Rene G
              Affected customers:
              50 This affects my team
              Watchers:
              67 Start watching this issue

                Created:
                Updated:
                Resolved: