Hello,
our client reported that GIF is converted to PNG after merge. I tested and found that the issue is introduced in version 8.5.3.
Sample template is attached.
Regards
Document document = new Document();
document.LoadFromFile("template_gif.docx", FileFormat.Auto);
Document documentMerge = new Document();
documentMerge.LoadFromFile("template_gif - clone.docx", FileFormat.Auto);
documentMerge.KeepSameFormat = true;
foreach (Section sec in documentMerge.Sections)
{
document.Sections.Add(sec.Clone());
}
document.SaveToFile("Sample.docx", FileFormat.Docx);foreach (DataRow dr in data.Rows)
{
using (var document = new Document())
{
document.LoadFromFile(template);
var resultFile = Path.GetTempFileName() + ".docx";
document.MailMerge.Execute(dr);
document.SaveToFile(resultFile, FileFormat.Docx);
}
}