Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-95782

PDF preview does not render characters both multibyte characters and single-byte characters. Some pdf files are not rendered on PDF Preview in Confluence

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • 7.19.6, 8.5.7
    • None

      Environment

      • Confluence 6.1.4
      • Confluence 6.2.0
      • Confluence 5.10.8 can render the characters

      Steps to Reproduce

      1. Attach the sample pdf file to a page. (testpdf.pdf attached)
      2. Save the page.
      3. thumbnail looks good.
      4. Preview/download the pdf file. no characters.

      Expected Results

      Characters are rendered normally.

      Actual Results

      All characters are not rendered in PDF preview/download.

      Workaround

      cd /opt/atlassian/confluence/confluence/WEB-INF/atlassian-bundled-plugins
      jar -xf confluence-previews-11.3.15.jar mediaviewer/lib/mediaviewer-2.js
      sed -i -e 's/c.cMapUrl="/c.cMapUrl=e.basePath+"/' mediaviewer/lib/mediaviewer-2.js
      jar uf confluence-previews-11.3.15.jar mediaviewer/lib/mediaviewer-2.js

      rm -rf /var/atlassian/application-data/confluence/plugins-osgi-cache/

        1. image-2024-05-20-11-09-01-467.png
          image-2024-05-20-11-09-01-467.png
          744 kB
        2. image-2024-05-20-11-09-45-935.png
          image-2024-05-20-11-09-45-935.png
          22 kB
        3. image-2024-05-20-11-10-22-339.png
          image-2024-05-20-11-10-22-339.png
          90 kB
        4. testpdf.pdf
          8 kB

            Unassigned Unassigned
            125fde2dc4e6 KOBUS VAN EEDEN
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: