3
votes

I have to create report using itext but the language should be hindi or marathi. Is it possible to make pdf file which contains marathi font like mangal,shruti,shree-dev...etc if yes plz reply me Thank you!

2
Good point, particularly the answer mentioning encodings. However, if any of these languages require Shaping, then all best are off. iText only supports Arabic shaping.Mark Storer
Did you try adding a font programattically ?Chris

2 Answers

0
votes

Adding a marathi font in itext pdf is :

BaseFont kruti_Dev = BaseFont.createFont("c:/WINDOWS/Font/Kruti_Dev_010.ttf"
                       ,BaseFont.CP1252,BaseFont.EMBEDDED);
Font font = new Font(kruti_Dev, 12, Font.NORMAL);
0
votes

Try to use Aspose PDF Generator. Make request and response to utf-8.