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

Export to PDF in another language does not work with preformatted text

    XMLWordPrintable

Details

    Description

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

      Summary

      When trying to export a Confluence page in another languague (say russian) to PDF, it will ignore all text that is using code blocks or that is preformatted.

      Steps to Reproduce

      1. Install another language package into Confluence, e.g.: arial-atlassian.ttf (instructions)
      2. Create a page on Confluence with russian characters. E.g.:
        <pre>adsccas</pre>
        <p>фывфыв</p>
        <pre>фывфыв</pre>
        <p>&nbsp;</p>
        <pre>var blabla=1; //русский комментарий.</pre>
        <p>&nbsp;</p><ac:structured-macro ac:name="code" ac:schema-version="1" ac:macro-id="6c08de39-8d94-45af-ab61-a5c5c23566c0"><ac:parameter ac:name="language">js</ac:parameter><ac:parameter ac:name="title">test block</ac:parameter><ac:parameter ac:name="linenumbers">true</ac:parameter><ac:plain-text-body><![CDATA[var blabla=1; //русский комментарий.]]></ac:plain-text-body></ac:structured-macro>
      3. Export this page to pdf

      Expected Results

      File should be exported with all the content on the page.

      Actual Results

      File is missing some texts (preformatted and in code blocks ones)

      Page:

      Export:

      Workaround

      Use the regular paragraph format on those texts. Or, specify the following CSS to Global PDF Stylesheet:

      pre, .panel .panelContent pre {
        font-family: ConfluenceInstalledFont, sans-serif;
      }
      
      div.codeContent.panelContent pre, .code pre, .preformatted pre, tt, kbd, code, samp {
        font-family: ConfluenceInstalledFont, monospace !important;
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ediel Elisa [Atlassian]
              Votes:
              20 Vote for this issue
              Watchers:
              22 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: