wooio / htmltopdf-java

An HTML to PDF conversion library written in Java, based on wkhtmltopdf.
MIT License
173 stars 97 forks source link

I get question marks instead of letters #26

Closed OctoOsmo closed 5 years ago

OctoOsmo commented 5 years ago

When I use console tool (wkhtmltopdf 0.12.2.4) I have properly generated pdf. But if I use this library I have question marks instead of letters.

This issue relevant for Ubuntu 16.04.5 LTS in docker. On my windows 10 machine all working good.

benbarkay commented 5 years ago

Make sure that you have the relevant fonts and encodings installed in your docker container.

On Thu, May 23, 2019, 7:21 PM OctoOsmo notifications@github.com wrote:

When I use console tool (wkhtmltopdf 0.12.2.4) I have properly generated pdf. But if I use this library I have question marks instead of letters.

This issue relevant for Ubuntu 16.04.5 LTS in docker. On my windows 10 machine all working good.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wooio/htmltopdf-java/issues/26?email_source=notifications&email_token=AA4DXUXPK3KP4SBZAFVM6FTPW277TA5CNFSM4HPIG2EKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GVQHPYQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AA4DXUQUODGXZWIOOPD34YLPW277TANCNFSM4HPIG2EA .

OctoOsmo commented 5 years ago

But console whhtmltopdf works great. How could it work if I do not have fonts in system? here is my font from html document: style="font-size:14;font-family:times;text-align:left;border:solid 0px" html document in utf-8 encoding. Which font I should install?