I have converted the text file to pdf using latest version of aspose 18.104.22.168 version but for few language files it is converted properly and few other language files like korean language file is not being converted properly. Can you please help on this. Below is the code which i am using and i am attaching the source and the converted file.
System.IO.TextReader tr = new StreamReader("D:\\Convert\\4.text"); Aspose.Pdf.Document pdf1 = new Aspose.Pdf.Document(); Aspose.Pdf.Document pdf2 = new Aspose.Pdf.Document(); Aspose.Pdf.Page page = pdf1.Pages.Add(); page.PageInfo.Margin.Left = page.PageInfo.Margin.Top = 5; TextFragment t2 = new TextFragment(tr.ReadToEnd()); // set the font size for text inside PDF file t2.TextState.FontSize = 12; // add text to paragraphs collection of section object page.Paragraphs.Add(t2); pdf1.Save("D:\\Convert\\3.pdf");
Files.zip (152.6 KB)