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

      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;
      }
      

        1. arial-atlassian.ttf
          872 kB
          Elisa [Atlassian]
        2. Screen Shot 2016-06-01 at 10.44.16 AM.png
          46 kB
          Elisa [Atlassian]
        3. Screen Shot 2016-06-01 at 10.45.20 AM.png
          29 kB
          Elisa [Atlassian]
        4. SPC-32768364-260619-0143.pdf
          26 kB
          K. Yamamoto

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

                Created:
                Updated:
                Resolved: