Dear Aspose Team,
I’m a exterprise user of your product, i need a support in encoding while saving the word file as pdf.
I’m using aspose words 14.6 version and exporting the word like using below code
Aspose.Words.LoadOptions loadOptions = new Aspose.Words.LoadOptions();
loadOptions.Encoding = System.Text.Encoding.UTF8;
Aspose.Words.Document doc = new Aspose.Words.Document(MyDir + "Example.docx");
Its working fine, and i’m getting the exported word in chinese, russian support.
But my problem arises when i’m trying to save the same document object as pdf like below
doc.Save(MyDir + "Example", Aspose.Words.SaveFormat.Pdf);
I’m not getting the chinese and russian characters some cyclic code coming.
What is the problem? How can i embed the UTF-8 support for this?
Hi Antony,
Thanks for your inquiry. I have tested the scenario using latest version of Aspose.Words for .NET 15.1.0 and have not found the shared issue. Please use Aspose.Words for .NET 15.1.0. I have attached the output Pdf with this post for your kind reference.
Moreover, please note that Aspose.Words requires TrueType fonts when
rendering documents to fixed-page formats (JPEG, PNG, PDF or XPS). Make sure
you have all the Fonts installed on your machine you’re using to convert
Word document to Pdf format. I would suggest you please read the
following articles:
https://docs.aspose.com/words/net/using-truetype-fonts/
https://docs.aspose.com/words/net/specifying-truetype-fonts-location/
Can you give me the code which you used
Hi Antony,
Thanks for your inquiry. I have used the following code example to convert Word document to Pdf.
Document doc = new Document(MyDir + "Example+Word+File.docx");
doc.Save(MyDir + "Out.pdf");
Many thanks Mr.Tahir, all the version change did the tricks.