// For complete examples and data files, please go to https://github.com/groupdocs-assembly/GroupDocs.Assembly-for-Java String myDir = "D:\\folder\\"; DocumentAssembler assembler = new DocumentAssembler(); // Create options LoadSaveOptions loadSaveOptions = new LoadSaveOptions(); loadSaveOptions.setResourceLoadBaseUri(myDir + "Alternative"); // Assemble document assembler.assembleDocument(myDir + "TestWordsResourceLoad.htm", myDir + "TestWordsResourceLoad Out.docx", loadSaveOptions, new DataSourceInfo("It should be a sport car image.", "value"));