Hi,
I am using Aspose cells v8.6.3.2
On converting Chart 1 to PNG the aspect ratio is not preserved, initial chart size is 5X3 inches but in PNG, the size is 3007 X 1869 pixels (3/5 = 0.6 and 1869/3007 = 0.62).
For reference, sample code & documents attached.
Sample Code:
Workbook workbook = new Workbook(“Excel.xlsx”);
WorksheetCollection ws = workbook.getWorksheets();
String worksheetName = “Aspect ratio”;
Chart chart = ws.get(worksheetName).getCharts().get(“Chart 1”);
chart.toImage(“D:\response_8.6.3.2.pdf”);
Can you please analyse this issue.
Thanks
Neha