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

PDF Export of Confluence page that consists of viewfile or viewxls view macro of a Excel spreadsheet truncates the table

XMLWordPrintable

      Step to reproduce

      1. Create a page
      2. Attach a wide Excel spreadsheet to Confluence page or simply download this A_Very_Wide_Spreadsheet.xls
      3. Add view file macro to the attached Excel file in the page
      4. Export the page to PDF
      5. You will notice that the table gets truncated truncated_PDFexport.pdf

      Workaround

      Add the following CSS in the PDF stylesheet:

      .office-document table
      {
         table-layout: auto !important;
         width: auto !important;
      }
      

      You can see the result like this now after applying the above CSS - better_PDFexport.pdf

        1. A_Very_Wide_Spreadsheet.xls
          9 kB
        2. better_PDFexport.pdf
          9 kB
        3. truncated_PDFexport.pdf
          6 kB

              shaffenden Steve Haffenden (Inactive)
              halatas HuseinA
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: