CSP-13377 - PDF in other languages

Product: Confluence

Environment

Operating System  
Affect Version/s  
JVM  
Database  
Application Server  

Error Message

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)

Symptom

The special/internationalized characters are still being translated as "#" in the PDF file produced.

Diagnostics/Test

Root Cause

The error message relates to a bug that is being reported here:

Where PDF language currently does not support other custom fonts than Verdana.
Additionally, the updated and valid verdana fonts installed may not be added onto ${confluence.home}/fonts directory which may lead to the "#" signs being rendered and replaces the special characters in PDF.

Solution

Ensure the valid Verdana font is installed as well as ensure that a compatible fop.xml file is created in the ${confluence.home}/fonts directory when installing fonts via the Admin console.

Labels

confluence confluence Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.