Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
whyyellowsea opened this issue Aug 31, 2023 · 1 comment
Assignees

Comments

@whyyellowsea
Copy link

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
Copy link
Collaborator

briri commented Apr 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants