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