CDLUC3 / dmptool

DMPTool version of the DMPRoadmap codebase
https://dmptool.org
MIT License
58 stars 13 forks source link

Chinese characters not displaying properly in the DMPs downloaded in pdf format #502

Open whyyellowsea opened 1 year ago

whyyellowsea commented 1 year ago

Please complete the following fields as applicable:

What version of the DMPRoadmap code are you running? (e.g. v2.2.0) the online version

Expected behaviour: Chinese characters to be displayed properly in the pdf files downloaded.

Actual behaviour: The Chinese characters are not displaying properly in pdf files, but in other formats. image

Steps to reproduce: Creating a DMP with Chinese characters like "天文"

Suggested possible solution: Could we try having the CJK language pack for pdf generation?

briri commented 6 months ago

The wkhtmltopdf C library is generating the PDF documents from an HTML file that the Rails application generates.

The issue is with the fonts available on the server. There are many Stackoverflow articles out there offering potential solutions.

We would need to do some work to test this out. It's also a dependency that we would probably want to manage via puppet and will need to keep up to date.

Not sure if we want to expend the effort here @mariapraetzellis since we need to replace the use of that C library.