Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

Converting HTML to PDF for Hebrew version of our website getting gibberish in the rendered PDF

Avatar

Level 2

Hi,

Our hebrew website which has a dynamic PDF generated based out of the html and passed to itext pdf getting gibberish. We use itext pdf 5.5.5 version and 

also set  UTF-8 as a charset and Arial unicode MS.ttf has been used.  The fonts getting all content changed to question marks (???) .  The issue is only for hebrew, seems were missing something to set the required parameters.

Please provide us some insights to verify .

Thanks 

1 Reply

Avatar

Administrator

Hi 

This seems like issue with iText PDF.

Please reach out to Itext PDF support for more help :- http://itextpdf.com/support

but, I found out one good reference for this problem:-

Link:- http://stackoverflow.com/questions/31357181/how-to-display-arabic-in-pdf-created-using-itext

//How to solve this? Use the UNICODE notation: "\u0627\u0644\u0645\u0648\u0642\u0639 \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a"

I hope this might help you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni