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

Free Support Forum - aspose.com

Chart legend is reverted when saving Excel to PDF

Chart legend is reverted when saving Excel to PDF.

Code snippet to reproduce the issue :

        Aspose.Cells.License license = new Aspose.Cells.License();
        license.SetLicense("Aspose.Cells.NET.lic");

        var path = "TestingArabicDoc2tempXlsxFileForPdf";
        var wb = new Aspose.Cells.Workbook(path + ".xlsx");
        wb.CalculateFormula();
        wb.Save(path + ".pdf", Aspose.Cells.SaveFormat.Pdf);

Inverted legend 1.jpg (66.2 KB)
Inverted legend 2.jpg (51.3 KB)Aspose testing arabic Jan 22.zip (39.3 KB)

@JeanClairPoncet,

Please zip and attach the template Excel file, we will check it soon.

Hi Amjad,

Just added the “Aspose testing arabic Jan 22.zip” file with the excel template, the short sample program and the generated PDF.

@JeanClairPoncet,

Please notice, I am able to reproduce the issue as you mentioned by converting your template file to PDF file format. I found chart legend is reverted when saving Excel to PDF. I have logged a ticket with an id “CELLSNET-50225” for your issue. We will look into it soon.

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

Thanks @Amjad_Sahi,
Looking forward for an update.

@JeanClairPoncet,

Sure, we will keep you posted with updates (once available).

@JeanClairPoncet,

We are pleased to inform you that your issue has been resolved now. The fix will be included in our next (upcoming) regular release: Aspose.Cells v22.2.

The issue is fixed in the fix v22.1.1.
Aspose.Cells22.1.1 For .Net2_AuthenticodeSigned.Zip (5.6 MB)
Aspose.Cells22.1.1 For .Net4.0.Zip (5.6 MB)
Aspose.Cells22.1.1 For .NetStandard20.Zip (5.6 MB)