I’m converting MS Excel documents to PDF using Cells 7.5.0 on a Windows machine using JDK 7. I have the following issues:
The generated PDF does not contain any chart
The number of pages in the PDF is not as expected. The Excel file has 1 sheet mapping onto 4 pages (in the print preview) while the generated PDF has 6 pages.
The code to create the PDF I’m using is trivial:
InputStream is = new FileInputStream(“C:/EWB/examples code/Aspose/data/charts on same sheet.xls”);
Workbook workbook = new Workbook(is);
workbook.save(“C:/EWB/examples code/Aspose/data/charts on same sheet.pdf”, FileFormatType.PDF);
Could you please have a look and let me know why it is not working?
I’ve ran it again in a fresh environment, a virtual box with only Eclipse, Java, and Aspose Cells installed. Now the PDF contains the charts but they don’t fit the pages (see attachement).
Could you please let me know how to obtain a PDF that looks like the one you attached in your previous reply?
I managed to get Cells to generate the correct PDF. The issue is that Cells 7.5.0.2 does not properly support jdk1.7.0_21. It does work fine with jdk1.6.0_37. Could you please confirm this incompatibility with jdk1.7.0_21?
Please find attached the PDF generated with using jdk1.6.0_37, jdk1.7.0_09, and jdk1.7.0_21
As you can see:
using jdk1.6.0_37 the generated PDF is correct
using jdk1.7.0_09 the charts are rendered but they exceed the page width