// For complete examples and data files, please go to https://github.com/groupdocs-conversion/GroupDocs.Conversion-for-Java
// Instantiating the conversion handler
ConversionHandler conversionHandler = new ConversionHandler(Utilities.getConfiguration());
HtmlSaveOptions saveOption = new HtmlSaveOptions();
saveOption.setOutputType(OutputType.String);
// Set Uri path.
String guid = "http://example.com/DOCXsample.docx";
String convertedDocumentPath = conversionHandler.<String> convert(guid, saveOption);
System.out.print("Converted file path is: " + convertedDocumentPath);