The problem is that iText doesn't display the under script correctly.
Here is the example for comparing the correct display and incorrect display
in iText for Khmer Unicode.

http://itext-general.2136553.n4.nabble.com/file/n3817219/khmer.png 

And here the code to test this issue.

public class UnicodeExamplePDF {

    public static void main(String[] args) {
        Document document = new Document();

        try {
            PdfWriter writer = PdfWriter.getInstance(document, new
FileOutputStream("UnicodeExamplePDF.pdf"));
            document.open();

            BaseFont bfComic = BaseFont.createFont("D:/Kh Content.ttf",
BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
            document.add(new Paragraph("\u1781\u17d2\u1789\u17bb\u17c6", new
Font(bfComic, 12)));
            
        } catch (Exception e) {
            System.err.println(e.getMessage());
        }
        document.close();
    }
}

Could you kindly advise how to fix it in iText?

Best regards,
LeeJava

--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Khmer-Unicode-support-in-iText-tp3815030p3817219.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to