Hello,
I want a job that converts from PDF to XLSX, The code below converts it to XLS and not XLSX. I’m planning to use the SaveFormat Enumeration but the examples on the Aspose are not enough. Using the ExcelSaveOptions allows you to only save XLS. The XLS file can be opened but it prompts an error upon opening. Is there a way where I can define the format type of an Excel? Thanks in advance for the help! Below was the aspose code used.
//Convert
com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document(“test.pdf”);
// Instantiate ExcelSave Option object
com.aspose.pdf.ExcelSaveOptions excelsave = new com.aspose.pdf.ExcelSaveOptions();
// Save the output to XLS format, changing this to .xlsx wont allow in ExcelSaveOptions
pdfDocument.save(“test.xls”), excelsave)