Free Support Forum - aspose.com

Excel file containing shapes with text not converting properly

I have an “.xlsx” file that contains shapes with text inside. When I convert it to PDF, some of those shapes are missing their text in the resulting file. If the file is initially in “.xls” format instead, I do not have this issue. Performing multiple conversions is not ideal though. Below is the code I am using to perform the conversion:

Workbook workbook = new Workbook(in);
workbook.save(out, com.aspose.cells.SaveFormat.PDF);

*Note: “in” is a ByteArrayInputStream containing the contents of the file.

@britt04us

Thanks for the sample code segment and details.

To evaluate your issue precisely, we need your template Excel file. Please zip the MS Excel .xlsx file and post us here, we will check it soon.

Please find the zip file attached. Thanks!

TestSpreadsheet.zip (1.0 MB)

@britt04us,
We were able to observe the issue but we need to look into it more. We have logged the issue in our database for investigation and for a fix. Once, we will have some news for you, we will update you in this topic.

This issue has been logged as

CELLSJAVA-43131 – Excel to PDF - Shapes with text not converted properly

@britt04us,

This is to inform you that we have resolved your issue. After performing QA and merging other enhancements and fixes, we will soon provide you with a fixed version.

@britt04us,

Please try our latest version/fix: Aspose.Cells for Java v20.3.3 (attached)

Your issue should be fixed in it.

Let us know your feedback.
aspose-cells-20.3.3-java.zip (7.0 MB)