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

Free Support Forum - aspose.com

Aspose Cells text alignment issue


Having text alignment issue with this excel file, please check this input/ouput
Aspose Cells text alignment issue.zip (181.3 KB)

Would you like to test again with Aspose. Cells 23.1? We can get correct results by using Aspose.Cells 23.1. Please see the attachment.23.1_out.zip (84.1 KB)

I am using Aspose Cells 23.1 only, still getting same output on windows as well as on Linux.
Can you try with this Java codeSourceCode.zip (619 Bytes)

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CELLSJAVA-45120

You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.


To compare results of Excel generated pdf and Aspose.Cells generated pdf, please first let them have same page layout. In your source code, you clear the print area, this makes page layout changed a lot(page fit to wide/tall is set, the sheet zoom is 10% now if you clear the print area).

For your first note in your shared pdf: the gap issue:
Excel saved pdf file also has gap in this case.

For your second note: text wrap issue:
It is hard to make the text wrap exactly be same as Excel with so little sheet zoom 10%

Now we are not clearing the printarea in the code, converted pdf looks good.
Please close this ticket.


Good to know that by retaining the print area, it works for your needs. We have closed the ticket now.