So i have used Gembox.Document to convert a bunch of files from doc to docx. However afterwards those documents that contains an embedded Visio object is converted to an unknown object where some of the elements are missing, but not all. I can’t find that this is not supported, am i doing something wrong with just opening a doc document and saving as docx.
Attached is how it should look, and how it looks after conversion:
The following is my conversion code:
if (document.Extension.Equals(".doc", StringComparison.InvariantCultureIgnoreCase))
{
var fileName = Path.GetFileNameWithoutExtension(document.OldPath);
var doc = GemBox.Document.DocumentModel.Load(document.OldPath);
document.Extension = ".docx";
doc.Protection.StopProtection();
var savePath = $@"{migrationFolder}\{section.SectionNumber}\{document.DocumentInitial}\{document.DocumentName}{document.Extension}";
doc.Save(savePath);
document.MovedConvertedPath = savePath;
}