Search code examples
ruby-on-rails-3ubuntu-14.04wicked-pdfubuntu-server

ubuntu server 14.04 not rendering local characters generated using wicked_pdf


I have a pdf page containing Ethiopian characters. It works perfectly in ubuntu desktop 14.04, but when i deploy it to ubuntu server 14.04 the characters are not being displayed. I am using wicked_pdf gem to generate the pdf page.

I am stuck here for the whole day. Any help is welcomed.


Solution

  • For pdf creators you need to have the fonts you are using to be available on the machine it is doing the creation on. So in this case the Ethiopian font was installed on the desk top machine, but not on the server, leaving blanks in the PDF.