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

Free Support Forum - aspose.com

Aspose.Cells for Java 21.3+ text truncation in RectangleShapes

Upgrading from an older version of Aspose, we have noticed that some text in textboxes (RectangleShape instances with some text) is being truncated when saving the shape as an image.

All versions up to 21.2 correctly include in the image the entirety of the text. But starting from 21.3 onwards (up to 21.11) the last word of the text is missing in the .PNG image exported from the RectangleShape:

textbox-text-truncation.jpg (103.7 KB)

@PeteLee
Please upload your template file, we will check it ASAP.

@simon.zhao thank you. It is inside this Maven demo project: aspose-21.3-issue-textboxes.zip (15.4 KB)

@PeteLee,

Thanks for the template file and sample project.

Please notice, I am able to reproduce the issue as you mentioned by using your template file. I found text truncation issue with Rectangle shapes when rendering to image in newer Aspose.Cells for Java versions. The issue is logged as following:

  • CELLSJAVA-44093 - Text truncation issue with Rectangle shapes when rendering to image in newer Aspose.Cells for Java versions

We will look into it soon. Once we have an update on it, we will let you know here.

@PeteLee,

Just to inform you that your issue has been fixed on priority basis. You will get the fix either in paid support thread or here soon.

@PeteLee
Please try our latest fix:
aspose-cells-21.11.8-java.zip (7.5 MB)

The issues you have found earlier (filed as CELLSJAVA-44093) have been fixed in this update. This message was posted using Bugs notification tool

Thank you all involved.

We still see that in some cases there is text truncation.

For instance the following file contains a shape with text in 3 lines. The last word (“cracked”) is missing when saving that Shape to PNG for Aspose.Cells 20.8 and higher - including 21.12.

shape-text-truncation-2.zip (204.5 KB)

@PeteLee
I found text truncation issue with Rectangle shapes when rendering to image . The issue is logged as following:

  • CELLSJAVA-44143 - Text truncation when converting RectangleShapes to image

@PeteLee
Please use aspose-cells-21.12.3-java:
aspose-cells-21.12.3-java.zip (7.5 MB)