Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I can not find the arabic and encoding that will work with Arabic-windows 1256 when I call itext like this :
C#
            string tradbdo_ttf = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Fonts), "tradbdo.ttf");
    BaseFont bf1 = BaseFont.CreateFont(tradbdo_ttf, BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
iTextSharp.text.Font f1 = new iTextSharp.text.Font(bf1, 10, iTextSharp.text.Font.NORMAL);


PdfPCell cell = new PdfPCell(new Paragraph(1, line, f1));
Posted
Comments
BillWoodruff 25-Oct-14 15:44pm    
See if this helps:

http://stackoverflow.com/questions/4930800/create-pdf-from-persian-html-file-by-itextsharp

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