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!
Asked
Active
Viewed 4,032 times
3
-
related http://stackoverflow.com/questions/1775008/embed-font-into-pdf-file-by-using-itext – Bozho Oct 28 '10 at 11:57
-
1Good 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 Mar 23 '11 at 23:14
-
1Did you try adding a font programattically ? – Chris Sep 01 '12 at 14:26
2 Answers
0
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);

KV Prajapati
- 93,659
- 19
- 148
- 186

Jayashri
- 366
- 4
- 13
- 25
0
Try to use Aspose PDF Generator. Make request and response to utf-8.

rbento
- 9,919
- 3
- 61
- 61

user3428513
- 27
- 1
- 3
-
Both the question title and the tags show that a solution using itext is sought. Do you want to imply that *Aspose PDF Generator* is based on itext? – mkl Jun 27 '16 at 04:07