First of all, thanks for this great module!

My situation is when I run wkhtmltopdf from command line e.g.

wkhtmltopdf http://www.example.com/print/25 test.pdf

the resulted PDF displays Thai fonts correctly. But when I click the "PDF version" link of the same node to save the PDF file, all Thai fonts in the resulted PDF are displayed as squares. The CSS formatting were applied correctly, though.

Any suggestions?

CommentFileSizeAuthor
#2 correct-fonts.pdf38.33 KBkong
#2 square-fonts.pdf40.34 KBkong

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Strange indeed.. Can you provide examples of the PDFs generated in each scenario?

kong’s picture

StatusFileSize
new40.34 KB
new38.33 KB

Please find attached PDF files below.

kong’s picture

After taking a look at both files I realize that the correct-fonts.pdf has Tahoma fonts embedded as expected while the square-fonts.pdf has DejavuSans fonts embedded instead. Guess it is the hosting server issue then :(

PS. I tried the @font-face method but it's even worse because the resulted PDF just contains blank tables with no text, and no font embedded at all.

jcnventura’s picture

I guess you're right.. Your hosting server should provide access to the correct fonts for the webserver user.

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Closing the issue.