Home Bengali not show properly in itext 5
Reply: 0

Bengali not show properly in itext 5

user829
1#
user829 Published in May 26, 2018, 9:38 pm

I am trying to create a pdf to the Bengali language.But not show in a proper format.

`Paragraph presAdviceVal = new Paragraph();
                    presAdviceVal.setIndentationLeft(10);
                    presAdviceVal.setFont(customBangla);
                    presAdviceVal.setSpacingAfter(40);
presAdviceVal.add(new Chunk(" \u00BB "+"\u0986\u09b2-\u09ac\u09bf\u09b0\u09c1\u09a8\u09c0\u09b9\u09be\u09b8\u09aa\u09be\u09a4\u09be\u09b2 \u09b2\u09bf\u09ae\u09bf\u099f\u09c7\u09a1"));
                    //presAdviceVal.setFont(customBangla);
                    cell.addElement(presAdviceVal);`


    banglaFont = BaseFont.createFont("/assets/fonts/vrinda.ttf", BaseFont.IDENTITY_H,BaseFont.EMBEDDED);
             customBangla = new Font(banglaFont, 10);

anyone can help me ?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.359664 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO