Plain text to per-page image convert

Hello!

I want to convert plain text in Russian in the picture and in the end get a picture of a text consisting of special characters. What can I do to get a picture with text in Russian?

I have attached
the output file.


My code:

LoadOptions loadOptions = new LoadOptions();
loadOptions.LoadFormat = LoadFormat.Text;

Document doc = new Document(filename, loadOptions);

ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Png);
options.PageCount = 1;
options.Resolution = 160;

for (int i = 0; i < doc.PageCount; i++)
{
imgFilename = string.Format("{0}-{1:000}.png", filename, i + 1);
options.PageIndex = i;
doc.Save(imgFilename, options);
}

Hi Oleg,


Thanks for your inquiry. First of all, I would suggest you please upgrade to the latest version of Aspose.Words 13.6.0 from the following link:
http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/default.aspx

I hope, this helps.

Secondly, if the problem still remains, please attach your input text file here for testing. I will investigate the issue on my side and provide you more information.

You may also try specifying a Russian encoding that will be used to load your text file as follows:

Aspose.Words.LoadOptions loadOptions = new Aspose.Words.LoadOptions();
loadOptions.LoadFormat = LoadFormat.Text;
loadOptions.Encoding = Encoding.GetEncoding(Russian Encoding Number);
Document doc = new Document(@“C:\Temp\Example.txt”, loadOptions);

Best regards,