Merge Documents into Word file
Contents
[
Hide
]
Merge Documents into Word file in Java
GroupDocs.Merger for Java (which is a part of Conholdate.Total for Java) allows Multiple files (even different types of PDF files such as PDF, XPS, EPUB and TEX) can be combined into a single DOC / DOCX file by using GroupDocs.Merger API. You can also use this Join method to combine multiple DOC / DOCX files. This cross-format merge to DOC / DOCX could be useful for the cases when there is no ability to merge only DOC files. For now, GroupDocs.Merger API allows to Join other file types without password with the DOC / DOCX document loaded into Merger object.
The following example demonstrates how to merge DOC file with PDF, XPS, EPUB and TEX file types:
Merger merger = new Merger("c:\document1.doc"))
{
merger.join("c:\document2.pdf");
merger.join("c:\document3.xps");
merger.join("c:\document4.epub");
merger.join("c:\document5.tex");
merger.save("c:\merged.doc");
}