如何在iTextSharp生成的pdf文件中打印塞尔维亚Uncode字符? [英] How to print the serbia Uncode character in iTextSharp generated pdf file?

查看:124
本文介绍了如何在iTextSharp生成的pdf文件中打印塞尔维亚Uncode字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我是比斯瓦尔.当我在iTextSharp pdf文件中打印塞尔维亚语Unicode字符时,它将生成空白.当我打印通用英语时,它将以英语正常打印.
请建议我如何在iTextSharp生成的pdf文件中进行塞尔维亚Unicode打印.

我正在使用下面的代码来打印Unicode字符,但看起来该代码无法正常工作.

Hi
I am Biswal. When I print the Serbia language Unicode character in iTextSharp pdf file, it generates blank spaces. When I print the general English language, it prints normal in English language.
Please suggest me how can I do Serbia Unicode printing in iTextSharp generated pdf file.

I am using below code for printing Unicode character, but it looks like that this code is not working.

Dim cb As PdfContentByte = Writer.DirectContent
Dim ct As New ColumnText(cb)
Dim bf As BaseFont                      
bf = BaseFont.CreateFont("C:\Windows\Fonts\ARIALUNI.TTF", BaseFont.IDENTITY_H, BaseFont.EMBEDDED)
Dim myfont As New Font(bf, 8)
ct.AddText(New Chunk( cs.Section_A1, FontFactory.GetFont("bf", 8, iTextSharp.text.Font.NORMAL)))
ct.Go()


上面的代码适用于英语.

如果有人知道,那么请给我一些有关如何打印塞尔维亚unicode字符的想法.

谢谢&问候
Biswal


Above code is working for English language.

If anyone knows then please give me some idea on how to print serbia unicode character.

Thanks & Regards
Biswal

推荐答案

ArialUni.ttf是否包含塞尔维亚字形?如果不是,则必须找到包含它们的字体.通过谷歌搜索,我发现似乎缺少带有塞尔维亚字形的免费提供的unicode字体.

祝你好运!

干杯,
曼弗雷德(Manfred)
Does ArialUni.ttf contain Serbian glyphs? If doesn''t you''d have to find font that has them included. By googling some I found out that there seems to be kind of a shortage of freely available unicode fonts with serbian glyphs.

Good luck!

Cheers,
Manfred


这篇关于如何在iTextSharp生成的pdf文件中打印塞尔维亚Uncode字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆