Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using iText to output PDF file containing Korean characters

381 views
Skip to first unread message

Bo Wang

unread,
May 7, 2001, 5:13:17 PM5/7/01
to
I have a question about how to use the iText to create a pdf
file containing Korean characters. When I
download the Asian Font Pack from adobe's website, I find the font file
for Korean is different from those of
Chinese and Japanese, it has a extension name called otf (open type font
file), and when I use the
MakeCJK.java file within iText, those propertites files for Korean can
not be created correctly, there are
always some exception, also when I changed the test.java file and try to
output some Korean characters, it
doesn't work. here is the code:
BaseFont bfChineseSimplified =
BaseFont.createFont("HYSMyeongJo-Medium","UniKS-UCS2-H",false);
.......
cb.showText("\ubce8\ubcfe\ubdf4");
it works for Chinese and Japanese, but Korean seems to be different.
thanks in advance for your help.

Bo

murugan....@rentokil-initial.com

unread,
Feb 5, 2016, 7:39:15 AM2/5/16
to

1. dowload Malgun-Gothic-Bold_29380.ttf font.
2. store it in asset->fonts->Malgun-Gothic-Bold_29380.ttf font(android studio)
3. this code will work for cjk and English and vitenames


Font fontbold=FontFactory.getFont("assets/fonts/Malgun-Gothic-Bold_29380.ttf", BaseFont.IDENTITY_H,BaseFont.EMBEDDED, 12);
0 new messages