Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] Urgent:Bangla unicode font not displaying properly

Raquib Mahmood Shoeb

2007-08-08

Replies:

Hi,
We are using iText2.0 for generating pdf which contain bangla unicode font.
The problem is the pdf is not showing bangla characters properly.It displays some words correctly and some are not.
When i text from this document and paste it to word it showing properly.
My code for generating pdf is
            BaseFont baseFont =BaseFont.createFont("C:\\WINDOWS\\FONTS\\SolaimanLipi.ttf",BaseFont.IDENTITY_H , BaseFont.EMBEDDED);

            Font f = new Font(baseFont,14);

            PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("TestUnicode.pdf"));

            document.open ();

            document.add(new Paragraph(name,f));


Thanks
Raquib Mahmood Shoeb
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
©2008 junlu.com - Jax Systems, LLC, U.S.A.