Bugs with "Chart.Title.IsVisible = false" and save as pdf

I have line of code here:
sheet.Charts[0].Title.IsVisible = false;
Use to set the title of first chart of sheet not visible.

But when I call workbook.Save(streamOrFile, SaveFormat.Pdf);, it have some bug:

  1. Chart get invisible: I just want to hide title, but the chart is invisible on output PDF file.
  2. If two or more charts group up together, set the title invisible will caused throw CellsException when save as PDF file.

The detail of exception is below:

Aspose.Cells.CellsException: Shape to image Error!
   at Aspose.Cells.Workbook.Save(Stream stream, SaveOptions saveOptions)
   at Aspose.Cells.Workbook.Save(Stream stream, SaveFormat saveFormat)
   ...PRIVATE CODE and outer code...

Save as xlsx not throw exception, open saved xlsx file and save it as pdf neither throw exception.

Sample code here:
AsposeCellsBugReport.zip (29.9 KB)

@Flithor,

Could you please share complete sample sample code (runnable) and sample Excel file(if any) to reproduce the issue, we will check it soon.

Uploaded a sample code and updated description.

@Flithor,
Thanks for the sample code.

Please notice, I am able to reproduce the issue as you mentioned . I have logged a ticket with an id “ CELLSNET-51159” for your issue. We will look into it soon.

Once we have an update on it, we will let you know here.

@Flithor,

This is to inform you that your issue has been resolved. The fix will be included in the next release (Aspose.Cells for .NET v22.6) which is scheduled in the second week of June 2022. You will also be notified when the next version is published.

The issues you have found earlier (filed as CELLSNET-51159) have been fixed in this update. This message was posted using Bugs notification tool by johnson.shi

The issues you have found earlier have been fixed in this update. If you have downloaded the prior one(22.6.0), please use this update to replace the downloaded one because 22.6 has a bug which sometimes may cause generated file corrupted.