[java,2017-05-04] 合并word文档
标签:returndivcodeexceptocmvoiddesringimp
import java.io.File;
import com.aspose.words.Document;
import com.aspose.words.ImportFormatMode;
public class DocMerge {
public static void main(String[] args) throws Exception {
Document docAll=new Document(\”e:/a.doc\”);
String tmp_path=\”e:/b.doc\”;
File file=new File(tmp_path);
if(!file.exists())
return;
Document doc=new Document(tmp_path);
docAll.appendDocument(doc, ImportFormatMode.USE_DESTINATION_STYLES);
String targetPath = \”e:/ab.doc\”;
docAll.save(targetPath);
}
[java,2017-05-04] 合并word文档
标签:returndivcodeexceptocmvoiddesringimp
原文地址:https://www.cnblogs.com/shijt/p/8990557.html