Convert PDF to DOCX using Aspose.PDF for .NET - in the word file the word warn the word has Russian text

Problem: After export pdf to word, when open the word file, the word warn the word has Russian text

when open the file by word 2013.
A) the code used to test:

Aspose.Pdf.Generator.Pdf _pdf;
_pdf = new Aspose.Pdf.Generator.Pdf();
using (MemoryStream pdfFile = new MemoryStream())
{
Aspose.Pdf.Generator.Section sec = _pdf.Sections.Add();
string htmlTxt =
“<div style=“font-size: 9pt; font-style: Arial”>
  • test <span style=“background-color: #ff6600;”>fo<span style=“color: #800000;”>rmat One
  • tes<span style=“background-color: #999999;”>t form<span style=“color: #ff0000;”>at three
”;
Aspose.Pdf.Generator.Text htmlTxt1 = new Aspose.Pdf.Generator.Text(htmlTxt);
htmlTxt1.IsHtmlTagSupported = true;
sec.Paragraphs.Add(htmlTxt1);
_pdf.Save(pdfFile);
var allPagesDocFileName = “c:\doc.docx”;
using (FileStream allPagesDoc = new FileStream(allPagesDocFileName, FileMode.Create))
{
Aspose.Pdf.Document d = new Aspose.Pdf.Document(pdfFile);

// Instantiate DocSaveOptions object
Aspose.Pdf.DocSaveOptions saveOptions = new Aspose.Pdf.DocSaveOptions();
// Specify the output format as DOCX
saveOptions.Format = Aspose.Pdf.DocSaveOptions.DocFormat.DocX;

// Save document in docx format
d.Save(allPagesDoc, saveOptions);
}
}

B) The screen shot of the problem:
The attachment is the screenshot of the problem.

Thanks

Hi Gordon,


Thanks for using our API’s.

I have tested the scenario and have managed to reproduce same problem. For the sake of correction, I have logged it as PDFNET-40972 in our issue tracking system. We will further look into the details of this problem and will keep you posted on the status of correction. Please be patient and spare us little time. We are sorry for this inconvenience.

Have not hear from you for a while, any updates?

Hi Gordon,


Thanks for your patience.

As we recently have noticed earlier reported issue, so its pending for review and is not yet resolved. However the product team will surely consider investigating/fixing it as per development schedule and as soon as we have some definite updates regarding its resolution, we will let you know. Please be patient and spare us little time. We are sorry for this delay and inconvenience.