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

PDF Export displays blocks in the file name for Attachments named using Chinese Language

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 6.3.2, 6.15.7
    • Page - Export / Import
    • None

      Summary :

       When a ppt file is saved with file name in Chinese and attached to the page, while exporting the Confluence page as pdf, the file name in the PDF export shows  garbled Chinese characters in blocks.

       Steps to reproduce

      1. Create a page and attach the ppt file with file name in Chinese (used Ukai font for testing)
      2. Make sure Ukai font is selected from Confluence Administration (Cog Icon)  > General Configuration > PDF Export Language Support
      3. Export the page as pdf
      4. File itself is displayed fine in display and edit mode
      5. File name in the pdf export shows the Chinese characters in square blocks.

      Expected Results

      1. The file name in the PDF export should show the Chinese characters.

      Actual Results

      PDF export shows square characters for the file using Chinese characters as file name (Screen shot attached).

       

            [CONFSERVER-53263] PDF Export displays blocks in the file name for Attachments named using Chinese Language

            Adam Yao added a comment -

            如果你能看到这个页面,欢迎你,来自中国的朋友!

            针对中文有几处问题:

            1、宏的标题显示方框;

            • 解决:这是因为linux无法渲染西文以外的字符,只需要安装中文字体到系统即可;

            step1. 检查:
            以下地址无法正确加载出字符:
            <conf-host>/plugins/servlet/status-macro/placeholder?title=%E6%9C%AA%E5%BC%80%E5%A7%8B&colour=Grey

            $ fc-list :lang=zh
            ### nothing here!
            

            step2.安装:

            ### 可选使用阿里中国镜像源
            $ sed --in-place "s/archive.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list
            $ sed --in-place "s/security.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list
            $ apt update
            $ apt-get install fonts-wqy-zenhei
            

            step3.重启服务。

            2、doc文件预览显示方框;

            • 解决:这是因为文档转换没有配置正确的字体目录;
              step1. 增加环境变量:
              ### 字体目录来自上一步(可自定义)
              sed -i '118i CATALINA_OPTS="-Dconfluence.document.conversion.fontpath=/usr/share/fonts/truetype/wqy \${CATALINA_OPTS}"' /opt/atlassian/confluence/bin/setenv.sh
              

              step2. 重启服务。

            3、pdf导出显示方框;

            • 解决:PDF导出语言支持 页面上传中文字体即可;
              http://<conf-host>/admin/flyingpdf/configurepdflanguagesupport.action

             

            Adam Yao added a comment - 如果你能看到这个页面,欢迎你,来自中国的朋友! 针对中文有几处问题: 1、宏的标题显示方框; 解决:这是因为linux无法渲染西文以外的字符,只需要安装中文字体到系统即可; step1. 检查: 以下地址无法正确加载出字符: <conf-host>/plugins/servlet/status-macro/placeholder?title=%E6%9C%AA%E5%BC%80%E5%A7%8B&colour=Grey $ fc-list :lang=zh ### nothing here! step2.安装: ### 可选使用阿里中国镜像源 $ sed --in-place "s/archive.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list $ sed --in-place "s/security.ubuntu.com/mirrors.aliyun.com/g" /etc/apt/sources.list $ apt update $ apt-get install fonts-wqy-zenhei step3.重启服务。 2、doc文件预览显示方框; 解决:这是因为文档转换没有配置正确的字体目录; step1. 增加环境变量: ### 字体目录来自上一步(可自定义) sed -i '118i CATALINA_OPTS= "-Dconfluence.document.conversion.fontpath=/usr/share/fonts/truetype/wqy \${CATALINA_OPTS}" ' /opt/atlassian/confluence/bin/setenv.sh step2. 重启服务。 3、pdf导出显示方框; 解决:PDF导出语言支持 页面上传中文字体即可; http://<conf-host>/admin/flyingpdf/configurepdflanguagesupport.action  

            Avinash added a comment -

            affects 6.15.7

            Avinash added a comment - affects 6.15.7

              Unassigned Unassigned
              pyarakala Praveen Yarakala (Inactive)
              Affected customers:
              6 This affects my team
              Watchers:
              9 Start watching this issue

                Created:
                Updated: