문제

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?

올바른 솔루션이 없습니다

다른 팁

try to execute the following commands :

sudo -i yum install dejavu-sans-fonts
sudo -i yum install dejavu-sans-mono-fonts
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top