Load document from local disk
When the source document is located on the local disk GroupDocs.Merger allows you to load it via Merger class constructor specifying absolute or relative path to it.
The following code snippet shows how to load documents from local disk.
String filePath = "c:\sample.docx"; Merger merger = new Merger(filePath); System.out.print("Document loaded from local disk successfully.");