1

I am trying to print PDF from a html which contains Gujarati (Indian Language) characters using wkhtmltopdf 0.12.4 . O/S is Ubuntu .

wkhtmltopdf --encoding 'UTF-8' testutf.html testutf.pdf

Unfortunately it is printing those characters as small black box as shown below.enter image description here

I have added the folllowing meta tag in the html .

<meta  http-equiv='Content-Type' content='text/html; charset=UTF-8' ></meta>

This can be viewed perfectly from browser and also appearing in mail .The html from browser looks as below :

enter image description here

Can someone please let me know what should be the steps/command to produce proper PDF from this html .

Community
  • 1
  • 1

1 Answers1

0

I think the problem my be related to not having the correct font available to wkhtmltopdf see Custom fonts not working in Generated PDF using WKHTMLTOPDF Library for more information

JGNI
  • 3,933
  • 11
  • 21
  • The font family was included . But that expected the text to be written using english letters which is typed to produce the font . For example to display નામ I had to put it like GFD . This will be a tedious process . So I am trying to display the text as it is . – Sudeshna Bhattacharya Dec 17 '18 at 15:30