Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
VB
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()

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
Posted
Updated 26-Dec-10 23:17pm
v2

1 solution

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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900