PDFs in other languages render pound signs

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

問題

The special/internationalized characters are translated to "#" in the PDF file produced.

The atlassian-confluence.log contains the following error:

com.atlassian.confluence.importexport.ImportExportException: Error while generating PDF!
at com.atlassian.confluence.importexport.impl.PdfExporter.generatePDF(PdfExporter.java:165)
caused by: java.lang.NullPointerException
at org.apache.fop.render.pdf.fonts.LazyFont.getAscender(LazyFont.java:127)

原因

Before Confluence 4.0, the PDF export only supports the default Verdana font that is installed with Confluence. Additionally, the updated and valid Verdana fonts that are installed may not have been added to the <confluence-home-directory>/fonts directory.

As of Confluence 4.0, Confluence also provides Times New Roman, Helvetica or Courier fonts for use in PDF exports. 

ソリューション

  • Ensure that the valid Verdana font is installed
  • When installing fonts via the Admin console, make sure that a compatible fop.xml file is created in the <confluence-home-directory>/fonts directory. See CONF-7704 for further information.
  • To incorporate other fonts (as of Confluence 4.0), you can declare them using a @font-face CSS rule in your PDF Stylesheet.

Last modified on Mar 30, 2016

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.