我想在阿拉伯字体中允许使用itextsharp

时间:2013-07-10 12:48:39

标签: c# asp.net fonts pdf-generation itextsharp

我在Asp.net应用程序中使用Itextsharp

创建一个阿拉伯语文本,DataTables但这段代码不起作用

BaseFont baseFont = BaseFont.CreateFont("c:\\\\windows\\\\fonts\\\\tahoma.ttf", BaseFont.IDENTITY_H, true);
iTextSharp.text.Font FontAr = new iTextSharp.text.Font(baseFont, 10, iTextSharp.text.Font.NORMAL);
PdfPTable table = new PdfPTable(4);
PdfPCell cell = new PdfPCell(new Paragraph(3f,"مرحبا" ,FontAr));

在文本中出现反转字符,并且在表格单元格中根本不显示,

0 个答案:

没有答案
相关问题