Convert Excel to PDF Issue

Hi Team,

We have requirement for converting Excel to PDF and are using aspose license.
for POC purpose I used the Aspose Cell 7.0.1 jar file which is support to JDK 5. It converted to PDF file by using the below code -

Workbook workbook = new Workbook( "workbook.xls" );
//Save the document in PDF format
workbook.save( "AsposeConvert.pdf" , SaveFormat.PDF);

but some of the data is not visible properly in the PDF file.

Can you please suggest to us the aspose cell jar file for JDK 5 support and share the code.

Regards,
R. Subramanum

@RSYNarayan1,

Thanks for the details and sample code segment.

For your information, Aspose.Cells for Java supports JDK 1.6, 1.7 or greater versions. The “JDK 1.X\lib” folder contains jars for the respective JDKs e.g. JDK 1.6. This single Jar file supports JDK 1.6, 1.7, 1.8, 1.9 and above versions. Well, Aspose.Cells for Java dropped the support for Java versions prior to v6 more than 2/3 year ago (we also did announce in our official blog at that time) and has moved its codebase to Java 6 (Java 7 and 8 and above are also supported). Reason being, Sun/Oracle has discontinued the support for all JDK revisions prior to 1.6. Now the Aspose.Cells for Java package contains a single Jar that works well with Java 6, 7 &8 or above. In short, we cannot provide you the JDK1.4/1.5 version of the library.

In short, there is no other alternative but to upgrade to newer JDK versions and also upgrade to latest version of Aspose.Cells. If you still find any issue (after upgrading to latest version) with newer Aspose.Cells, kindly do share your template file, we will check it soon.