wkhtmltopdf and non-latin alphabet languages on CentoOS

If you work with multi-language websites, you might at some point need to create PDFs versions of the HTML pages. We always use wkhtmltopdf, as it works on windows / osx / linux, meaning it will work on all of our development environments.

wkhtmltopdf works with any language, whether it uses a latin or non-latin alphabet. It will however, return error “boxes” if your operating system does not support the selected alphabet. To solve this issue you will have to do is to install language support for each one of the languages.

Run yum install on language group:

yum install "@Arabic Support"
yum install "@Chinese Support"

This will work for the groups below:

  • Arabic
  • Armenian
  • Bengali
  • Burmese
  • Chinese
  • Ethiopic
  • Georgian
  • Greek
  • Gujarati
  • Hebrew
  • Japanese
  • Kannada
  • Khmer
  • Korean
  • Lao
  • Malayalam
  • Oriya
  • Russian
  • Tamil
  • Telugu
  • Thai