Export Special Characters to PDF using iTextSharp in ASP.Net

Last Reply one year ago By dharmendr

Posted one year ago

Hi all, by using below url i exported special characters like ∩, ∑, ∫, ∆ gridview data to pdf.



my requirement is

some special characters like ∈ not exported AND

instead of



BaseFont bf = BaseFont.CreateFont(Environment.GetEnvironmentVariable("windir") + @"\fonts\Arial.ttf", BaseFont.IDENTITY_H, true);

i want to use(my requirement)


BaseFont bf = BaseFont.CreateFont(Environment.GetEnvironmentVariable("windir") + @"\fonts\Times New Roman.ttf", BaseFont.IDENTITY_H, true);

but at runtime i get the error "Times-New-Roman" not found, but in my "windir" i have "Times New Roman.ttf" in font folder.

if any body understand my problem please help me.

Thanks in Advance

You are viewing reply posted by: dharmendr one year ago.
Posted one year ago

Not possible you have to use "ARIALUNI.ttf" font.

I agree, here is the link: https://www.e-iceblue.com/Introduce/spire-office-for-net-free.html