// 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());
// Set password to unprotect protected document during loading
LoadOptions loadOptions = new LoadOptions();
loadOptions.setPassword("secret");
// convert file to Xls, starting from page 2 and convert 2 pages
SaveOptions saveOptions = new CellsSaveOptions();
saveOptions.setConvertFileType(CellsSaveOptions.CellsFileType.Xls);
saveOptions.setPageNumber(2);
saveOptions.setNumPagesToConvert(2);
GroupDocsInputStream convertedDocumentPath = conversionHandler.<GroupDocsInputStream> convert(fileName,
loadOptions, saveOptions);