Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-81038

PDF Export fails for Confluence pages with extensive code snippets

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • Page - Export - PDF
    • None

      Issue Summary

      When a Confluence page contains extensive code snippets, exporting to PDF fails. A generic error message is displayed: "Unable to export PDF".

      Steps to Reproduce

      1. Create a Confluence page with a code snippet exceeding 8,000 lines (this can be a single snippet or multiple snippets totaling more than 8,000 lines).
      2. Attempt to export the page to PDF.

      Expected Results

      The page should be successfully exported to PDF, including all content and code snippets expanded.

      Actual Results

      The export process fails after approximately one and a half minutes, displaying the message: "Unable to export PDF".

      Additional Notes:

      • The issue occurs more frequently when code snippets are placed within an expand macro and a table.
      • In these cases, even pages with code snippets totaling 2,000 lines can cause export failure.

      Workaround

      • Break the content into smaller sections and distribute them across multiple pages.
      • Avoid placing large code snippets within tables when possible, as this can reduce the likelihood of export failure.

              dfe3d5f5e8a2 Haibert Barfian
              a4915c4809f8 Douglas Ferreira
              Votes:
              6 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated: