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

Words break unnecessarily when wrapping in PDF export

XMLWordPrintable

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

      Words fail to wrap in PDF export:

      Problem description:
      When exporting a page to PDF, the export is breaking single words apart and wrapping parts of the word to the next line.

      Current behavior:

      This is a test page on customer's Confluence:

      This is the PDF after the PDF export:

      Steps to reproduce:

      1. Click on Tools
      2. Export PDF
      3. Compare the Confluece page with the PDF exported. You can see the words wrapped wrong. (see the screen shots)

      Expected Behavior:

      The PDF wraps correctly the words when needed.

      Workaround

      Enter this CSS in Confluence Admin > PDF Stylesheet

      body, p, li, td, table, tr, .bodytext, .stepfield {
          word-wrap: normal;
      }
      
      .wiki-content p {
          word-wrap: normal;
      }
      

      NB: This will negate the changes made to resolve https://jira.atlassian.com/browse/CONF-24533. If you have long words (ie URL strings) that do not break, they will run off the edge of the page rather than wrap to the next line.

      Also Note this additional workaround to PDF stylesheet application:

        1. Screenshot 2022-11-23 181802.jpg
          Screenshot 2022-11-23 181802.jpg
          47 kB
        2. screen02.png
          screen02.png
          49 kB
        3. screen01.png
          screen01.png
          46 kB
        4. image-2022-11-23-18-14-48-523.png
          image-2022-11-23-18-14-48-523.png
          38 kB
        5. Example error on workaround.png
          Example error on workaround.png
          14 kB

              Unassigned Unassigned
              jdias Jorge Dias (Inactive)
              Votes:
              24 Vote for this issue
              Watchers:
              28 Start watching this issue

                Created:
                Updated:
                Resolved: