Uploaded image for project: 'Confluence Server'
  1. Confluence Server
  2. CONFSERVER-26230

Words break unnecessarily when wrapping in PDF export

    XMLWordPrintable

    Details

    • Symptom Severity:
      Major
    • UIS:
      8
    • Support reference count:
      11

      Description

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? 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:

        Attachments

        1. screen01.png
          screen01.png
          46 kB
        2. screen02.png
          screen02.png
          49 kB

          Issue Links

            Activity

              People

              • Votes:
                23 Vote for this issue
                Watchers:
                29 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Last commented:
                  9 weeks, 1 day ago