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

PDF export for Code Block content is resulting in blank space gap

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

      Summary

      When exporting a page with large (multi-page) code block content, the pdf file would contain block space gap within the code block content

      Steps to Reproduce

      1. Create a page and add a code block macro with enough content to span more than one page in the generated pdf
      2. Insert content into the code block macro
      3. Export page to PDF

      Expected Results

      1. It should properly export the page to PDF without blank space gap

      Actual Results

      1. PDF export for Code Block content is resulting in blank space gap.

        1. code_example.txt
          7 kB
          Luzia Azevedo Mendes [Atlassian]
        2. myspace-code-29Jun10-0131PM-2.pdf
          7 kB
          Luzia Azevedo Mendes [Atlassian]

            [CONFSERVER-20224] PDF export for Code Block content is resulting in blank space gap

            Saba Taseer made changes -
            Remote Link Original: This issue links to "Page (Bulldog)" [ 387344 ]
            Saba Taseer made changes -
            Remote Link Original: This issue links to "Page (Bulldog)" [ 390036 ]

            I work with PDF quite often, because for me it is the most convenient file format, especially for work. There may be different ways to edit PDF documents, but I use Nitro PDF Pro, which I learned about here https://setapp.com/how-to/merge-pdf-on-mac. So now I have no problems quickly combining several PDFs into one, or performing other actions, without reducing PDF content quality.

            Karl ber Drindl added a comment - I work with PDF quite often, because for me it is the most convenient file format, especially for work. There may be different ways to edit PDF documents, but I use Nitro PDF Pro, which I learned about here https://setapp.com/how-to/merge-pdf-on-mac . So now I have no problems quickly combining several PDFs into one, or performing other actions, without reducing PDF content quality.

            still happening.

            Chiril Russu added a comment - still happening.

            macfisher44 added a comment - - edited

            2023 and this is still an issue with code blocks being exported to .docx and pdf. Please re-open this issue.

            If you want to work around this, use the 'No Format' macro instead of code block macro, if that is an option for you.

            macfisher44 added a comment - - edited 2023 and this is still an issue with code blocks being exported to .docx and pdf. Please re-open this issue. If you want to work around this, use the 'No Format' macro instead of code block macro, if that is an option for you.
            set-jac-bot made changes -
            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2873889 ] New: CONFSERVER Bug Workflow v4 [ 3004665 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2803699 ] New: JAC Bug Workflow v3 [ 2873889 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Mark Bereznitsky made changes -
            Fix Version/s New: 6.6.8 [ 81403 ]
            Fix Version/s Original: 6.6.0 [ 75132 ]
            Mark Bereznitsky made changes -
            Remote Link New: This issue links to "Page (Bulldog)" [ 390036 ]

              mbereznitsky Mark Bereznitsky
              lamendes Luzia Azevedo Mendes [Atlassian]
              Affected customers:
              21 This affects my team
              Watchers:
              27 Start watching this issue

                Created:
                Updated:
                Resolved: