Rotated text boxes are rendered incorrectly

My application is receiving an Excel file from a client, which often turns out to contain rotated text boxes (although the text itself is not rotated).

When saved as pdf through Aspose, these text boxes are rendered incorrectly.
Only some of the text is shown, and some ugly lines are added on three of the sides.

When the text boxes are aligned correctly manually first, the pdf looks good.

When saving to pdf from within Excel, all the text boxes are rendered correctly, just as if they had been aligned manually.

Is there some way to iterate through all such text boxes and align them programmatically before saving to pdf?

Hi,

Thanks for your posting and using Aspose.Cells for .NET.

We were able to replicate this issue using the latest version: Aspose.Cells
for .NET v7.3.4.3
with the following code.

We have logged this issue in our database. We will look into this issue further and fix it. Once, the issue is fixed or we have some other update for you, we will let you know asap.

This issue has been logged as CELLSNET-41274.

Please see the sample test code below. I have attached the output pdf and screenshot highlighting the issues for a reference.

C#


string filePath = @“F:\Shak-Data-RW\Downloads\Rotated+textboxes.xlsx”;


Workbook workbook = new Workbook(filePath);

workbook.Save(filePath + “.out.pdf”, SaveFormat.Pdf);


Screenshot:

Hi,

Thanks for your posting and using Aspose.Cells for .NET

We are pleased to let you know that we have fixed this issue.

Please download and try this fix: Aspose.Cells for .NET v7.3.5.1 and let us know your feedback.

I have also attached the output pdf file and screenshot for your reference.

Screenshot:

Thank you very much for the quick response and satisfying fix! It doesn't get better than this ;-)

Have a happy new year!

Hi,


Thanks for your feedback.

Good to know that your issue is sorted out by the new fix.

New years greetings to you from our side and have nice holidays :slight_smile:

Thank you.