Khmer Unicode in iText

自作多情 提交于 2019-12-06 09:54:48

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

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);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!