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

            Monique Khairuliana (Inactive) made changes -
            Summary Original: tables in PDF export are full-width New: Tables that contains short strings are exported to full-width in PDF exports
            Monique Khairuliana (Inactive) made changes -
            Description Original: {panel:bgColor=#e7f4fa}
              *NOTE:* This bug report is for *Confluence Server*. Using *Confluence Cloud*? [See the corresponding bug report|http://jira.atlassian.com/browse/CONFCLOUD-25233].
              {panel}

            After updating from 4.1.9 to 4.2 the pdf export is not working properly.
            All tables have 100% width in pdf export.
            In Confluence:
             !conf-tables.png|thumbnail!
            After PDF export:
             !conf-tables-pdf-export.png|thumbnail!

            *Workaround*
            {code}
            table
            {
               table-layout:auto !important;
               width: auto !important;
            }
            {code}

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

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

            *Note*:
            Applying the workaround will result CONF-31874 in Confluence 5.5
            New: {panel:bgColor=#e7f4fa}
              *NOTE:* This bug report is for *Confluence Server*. Using *Confluence Cloud*? [See the corresponding bug report|http://jira.atlassian.com/browse/CONFCLOUD-25233].
              {panel}

            h3. 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.

            h3. Steps to Reproduce
            # Create a new page
            # Create a table with 2 columns
            # Paste short strings into each of the column
            # Save the page
             !conf-tables.png|thumbnail!
            # Export to PDF

            h3. Expected Results
            Each column width should be based on the contents.

            h3. Actual Results
            The exported content is a full width column, that has same width.
             !conf-tables-pdf-export.png|thumbnail!

            *Workaround*
            {code}
            table
            {
               table-layout:auto !important;
               width: auto !important;
            }
            {code}

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

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

            *Note*:
            Applying the workaround will result CONF-31874 in Confluence 5.5
            Monique Khairuliana (Inactive) made changes -
            Comment [ A comment with security level 'atlassian-staff' was removed. ]
            Monique Khairuliana (Inactive) made changes -
            Link New: This issue relates to CONFSERVER-54275 [ CONFSERVER-54275 ]

            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?
            Monique Khairuliana (Inactive) made changes -
            Description Original: {panel:bgColor=#e7f4fa}
              *NOTE:* This bug report is for *Confluence Server*. Using *Confluence Cloud*? [See the corresponding bug report|http://jira.atlassian.com/browse/CONFCLOUD-25233].
              {panel}

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

            *Workaround*
            {code}
            table
            {
               table-layout:auto !important;
               width: auto !important;
            }
            {code}

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

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

            *Note*:
            Applying the workaround will result CONF-31874 in Confluence 5.5
            New: {panel:bgColor=#e7f4fa}
              *NOTE:* This bug report is for *Confluence Server*. Using *Confluence Cloud*? [See the corresponding bug report|http://jira.atlassian.com/browse/CONFCLOUD-25233].
              {panel}

            After updating from 4.1.9 to 4.2 the pdf export is not working properly.
            All tables have 100% width in pdf export.
            In Confluence:
             !conf-tables.png|thumbnail!
            After PDF export:
             !conf-tables-pdf-export.png|thumbnail!

            *Workaround*
            {code}
            table
            {
               table-layout:auto !important;
               width: auto !important;
            }
            {code}

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

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

            *Note*:
            Applying the workaround will result CONF-31874 in Confluence 5.5
            Monique Khairuliana (Inactive) made changes -
            Attachment New: conf-tables-pdf-export.png [ 361389 ]

            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

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

                Created:
                Updated:
                Resolved: