简体   繁体   中英

how to create pdf file which contains marathi font using itext?

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!

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);

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM