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.");

More resources

GitHub Examples 

You may easily run the code above and see the feature in action in our GitHub examples:

Free Online App 

Along with full featured Java library we provide simple, but powerful free Apps. You are welcome to merge your documents with our free online GroupDocs Merger App.