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

Free Support Forum - aspose.com

Gradien direction

After conversion gradient direction is not rendered properly.
Please, compare attached files.
aspose-cells 8.4.2

Best Regards, Akane

Hi,


Thanks for providing us template file and screen shots.

After an initial test, I observed the issue as you mentioned. I found Gradient direction is not rendered fine for the drawing shape in the output PDF/ image file using Aspose.Cells APIs as per your attached screen shot(s). I used the template file provided by you with the following sample code:
e.g
Sample code:

Workbook workbook = new Workbook(“Bdty20.xlsx”);
Worksheet sheet = workbook.getWorksheets().get(0);
sheet.getPageSetup().setPrintGridlines(true);
sheet.getPageSetup().setPrintHeadings(true);

workbook.save(“outBdty1.xlsx”);
workbook.save(“outBdty1.pdf”, SaveFormat.PDF); //Gradient fill direction is not the same as per the original template file.

I have logged a ticket with an id “CELLSJAVA-41349” for your issue. We will look into it soon.

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

Thank you.

@QAkane
Please provide your attachments again. Due to migration to new forum, earlier attachments are lost or inaccessible.
Please provide us these files. And if there are other files too, please provide those files as well.Attachment: Bdty20.xlsx
Attachment: before.png
Attachment: result (3).png

@QAkane
For CELLSNET-41349,please try our latest version aspose-cells-21.6.2-java.zip (7.3 MB)
If you find any issue, please provide the source Excel file to help us analyze it.