Khmer Unicode in iText
I'm very new in iText.
Now I want to d开发者_如何学Pythonisplay Khmer Unicode in iText, but I can't do it. Does any one know how to do it? Please advise me.Regards, LeeJava
According to you, the owner of the question in another post, iText is not support Khmer Unicode.
I made summarize on this again as well on my blog: http://ask.osify.com/qa/287
Only we have to modify the source code of iText but until now no one claim that they will work on it so iText is not the right choice for us with Khmer Unicode yet until the source modify.
Another alternative solution, we have to use Openoffice doc with JODConverter, for me, I'm still in experiment this one but with quick test, it's working fine.
We just have another issue with creating the openoffice doc that could put Khmer unicode rendering as stated shortly in http://ask.osify.com/qa/318
Updated 13/01/2016
- I have added the source code sample for the rendering: http://ask.osify.com/qa/613
- The rendering customization with iText for Khmer Unicode added in github: https://github.com/Seuksa/iTextKhmer
if its anything like a normal font your gonna want something like
Font myfont= new Font(BaseFont.createFont("Font location", "encoding, "embedded"));
most fonts are located under c:\windows\fonts
Font font = new Font("khmer", Font.PLAIN ,33);
iText.setFont(font);
精彩评论