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 […]

英语桌面C#.net应用程序中的阿拉伯语本地化

我正在构建一个企业C#.net应用程序,要求是将有阿拉伯语和英语版本。 客户可以选择2个选项,可以将英语和阿拉伯语一起用于标签和说明,也可以在开始时使用英语和阿拉伯语进行combobox选择并继续使用该语言。 我想节省我的时间,并希望我可以建立一个英文版本,阿拉伯语必须自动翻译。 提前致谢。