Convert XLS with Images and Charts to PDF

The process can be done in memory as the process does not depend on temporary or intermediary XML files. This means that large Excel files, for example, ones containing images, charts, and other drawing objects, can be converted quickly and efficiently.

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java
// The path to the documents directory.
String dataDir = Utils.getDataDir(ConvertXLSFileToPDF.class);
//Create a new Workbook
Workbook book = new Workbook(dataDir + "SampleInput.xlsx");
//Save the excel file to PDF format
book.save(dataDir + "output.pdf", SaveFormat.PDF);