We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

XLSX to PDF conversion with Aspose.Cells for Java API in Oracle and Open JDK


We are using Aspose.Cells v19.11 for generating outputs (pdf, png, html etc.) of excel charts, tables, ranges and sheets.

Earlier we were using Oracle Java SE 8 and output was rendered fine but now we are using OpenJdk 8 and we have noticed rendering issues in that.

For e.g.: When generating pdf of a particular chart, in case of OpenJdk some of the chart elements like labels, axis values etc. are shifted from their original position.

Please find attached the pdf outputs generated with OracleJdk vs OpenJdk:
attachments.zip (60.1 KB)

Is there any difference in how Aspose works with OpenJdk vs OracleJdk? Is there anything extra that we need to do when using OpenJdk.


There is no such differentiation done by Aspose.Cells and this issue is never reported earlier. We need to investigate it but before that, we would like to know about the complete details of your environment like OS, development IDE and simple runnable console application which can be used to reproduce this issue. You may also share the template file (if any).


We are using OpenJdk 8 on Windows Server 2016.

Following code is used to generate the PDF:

Workbook workbook = new Workbook(“test.xlsx”);
WorksheetCollection ws = workbook.getWorksheets();
String worksheetName = “Charts”;
Chart chart = ws.get(worksheetName).getCharts().get(“Chart 1”);

Please find attached the source excel to generate the pdf:
attachments.zip (131.1 KB)


We have analysed your issue but we need to look into it more. We have logged the issue in our database for investigation. Once, we will have some news for you, we will update you in this topic.

This issue has been logged as

CELLSJAVA-43074 – XLSX to PDF, Difference in PDF output when using Oracle Jdk vs Open Jdk

This is to inform you that we have fixed your issue (logged earlier as “CELLSJAVA-43074”) now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.

The issues you have found earlier (filed as CELLSJAVA-43074) have been fixed in Aspose.Cells for Java v20.1. This message was posted using Bugs notification tool by ahsaniqbalsidiqui