An xml (Excel) file with an empty, self-closing Styles tag, i.e., <Styles />, results in Cells hanging when loading the file. Unfortunately it does not fail, and results in resources not being released. Changing the tag to be <Styles></Styles> works.
After an initial test, I am able to observed the issue as you mentioned. Aspose.Cells hangs when converting a SpreadsheetML file (xml) to PDF with self-closing Styles tag. I created an XML Spreadsheet 2003 file (.xml) by copying the file contents you pasted into a new file and save the XML file. Now I used the following sample code to try to convert the file to PDF:
e.g Sample code:
Workbook wb = new Workbook("f:\\files\\test.xml");
wb.save("f:\\files\\out1.pdf");
I have logged a ticket with an id “CELLSJAVA-42644” for your issue. We will look into it soon.
Once we have an update on it, we will let you know here. test1.zip (604 Bytes)
This is to inform you that we have fixed your issue CELLSJAVA-42644 now. We will soon provide the fix after performing QA and including other enhancements and fixes.
We are scheduled to release our next official version (e.g Aspose.Cells for Java v18.6) before the end the next week (hopefully) or so. The release will include the fix of your issue. There is no exact release date, the releases are published when ready.
By the way, in the mean time we might publish an interim fix (in the next 2-3 days) and share with you here.
Please use some Zip tool to extract the Aspose.Cells for Java Jar from zipped archive. I tested using WinRar tool and it extracts the Jar fine. May be you need to re-download the zipped archive as it was not downloaded properly previously due to bad network.
Ok, I think you got it right now. By the way, we are scheduled to publish our next official version before the end of next week or so. The next version (v18.6) will also include the fix of your issue, so you may get it from maven repos. without any issue on your environment.