public static void Merge(string[] paths, string docPath)
{
AsposeHelper.SetWordsLicense();
Document dstDoc = new Document();
dstDoc.CompatibilityOptions.OptimizeFor(MsWordVersion.Word2019);
dstDoc.RemoveAllChildren();
foreach (string path in paths)
{
Document doc = new Document(path);
//doc.CompatibilityOptions.OptimizeFor(MsWordVersion.Word2019);
dstDoc.AppendDocument(doc, ImportFormatMode.KeepSourceFormatting);
}
dstDoc.Save(docPath);
}
任何文档都一样