// For complete examples and data files, please go to https://github.com/groupdocs-assembly/GroupDocs.Assembly-for-Java
String srcDocument = "/Html Templates/Common Master-Detail.html";
String docReport = "/Html Reports/Common Master-Detail_report.html";
try {
DocumentAssembler assembler = new DocumentAssembler();
// This is needed solely for images in HTML documents.
assembler.getKnownTypes().add(FileUtil.class);
assembler.assembleDocument(CommonUtilities.getDataPath(srcDocument),
CommonUtilities.getOutPath(docReport), new DataStorage(), null);
} catch (Exception exp) {
System.out.println("Exception: " + exp.getMessage());
}