How to create a pdf file containing a Marati font using itext?

I need to create a report using itext, but the language must be Hindi or Marathi. Is it possible to make a pdf file that contains a Marathi font, such as brazier, shruti, shree-dev ... etc., if yes plz answer me Thank you!

+3
source share
2 answers

Adding a Marathi font to itext pdf:

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
source

Try using the Aspose PDF Generator. Make a request and response on utf-8.

0
source

Source: https://habr.com/ru/post/1771917/


All Articles