Question

I've been using PDFKit to create pdf in Rails 4 on Ubuntu 13.04. Locally, It works fine and show html page with utf-8 encoding, but when I want to get pdf created in server(CentOS) pdf will be created but the contents are weird charracters(some black squares). Even when I delete html content and put a letter the result is the same.

Any idea?

Pas de solution correcte

Autres conseils

try to execute the following commands :

sudo -i yum install dejavu-sans-fonts
sudo -i yum install dejavu-sans-mono-fonts
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top