Tag: 阿拉伯语支持

使用c#中的iTextSharp的pdf阿拉伯语

我想在C#中创建一个包含阿拉伯文本内容的PDF文件。 我正在使用iTextSharp来创建它。 我按照http://geekswithblogs.net/JaydPage/archive/2011/11/02/using-itextsharp-to-correctly-display-hebrew–arabic-text-right.aspx中的说明进行操作。 我想在pdf中插入以下阿拉伯语句子。 تمإبرامهذاالعقدفيههااليوم[●]مالموافق[●]منقبلوبين。 [●]需要用动态英语单词代替。 我尝试使用ARIALUNI.TTF实现这一点[本教程链接建议]。 代码如下。 public void WriteDocument() { //Declare a itextSharp document Document document = new Document(PageSize.A4); //Create our file stream and bind the writer to the document and the stream PdfWriter writer = PdfWriter.GetInstance(document, new FileStream(@”D:\Test.Pdf”, FileMode.Create)); //Open the document for writing document.Open(); //Add a new page document.NewPage(); //Reference a […]