如何修复我的文字到pdf转换?

时间:2012-10-18 08:37:58

标签: c# itextsharp

我使用此代码将TextBox内容保存为PDF,但它仅支持英语。它不支持僧伽罗语,泰米尔语,盲文字母。

<sfd.Title = "Save As PDF";

        sfd.Filter = "(*.pdf)|*.pdf";

        sfd.InitialDirectory = @"C:\";

        if (sfd.ShowDialog() == DialogResult.OK)
        {
            iTextSharp.text.Document doc = new iTextSharp.text.Document();

            iTextSharp.text.pdf.PdfWriter.GetInstance(doc, new FileStream(sfd.FileName, FileMode.Create));

            doc.Open();

            doc.Add(new iTextSharp.text.Paragraph(textBox1.Text));

            doc.Close();

         }> 

你能帮我解决一下吗?

enter image description here

这是Sinhala文本它不支持此代码请帮助

0 个答案:

没有答案