Text gets mirrored when saving XLSX to PDF

Hi,

please see the attached XLSX file. On the first sheet you find 4 arrows with a letter inside. Those letters get mirrored when saving to pdf. See the screenshots.
XLSX:
grafik.png (67,2 KB)
PDF:
grafik.png (68,1 KB)

What can I do about this?
zeus_6_EP_OEN5_01.zip (771,6 KB)

Regards
Markus

@ebrunner

Thanks for sharing the sample. Based on your description, here is a likely technical approach for Aspose.Cells when converting xlsx to pdf.

The arrows are stored in the worksheet as AutoShapes that have a negative horizontal scale (the “Flip Horizontal” flag). In older releases of Aspose.Cells the PDF renderer does not clear that flag, so the shape is drawn mirrored in the PDF even though it looks correct in Excel. Updating to a recent version of Aspose.Cells (or resetting the flag before saving) usually fixes the problem:

// .NET example
Workbook wb = new Workbook("input.xlsx");

// clear the flip‑horizontal flag for every shape that contains text
foreach (Worksheet ws in wb.Worksheets)
{
    foreach (Shape sh in ws.Shapes)
    {
        if (sh.IsAutoShape && sh.Text != null)
            sh.FlipHorizontal = false;   // or sh.Rotation = 0;
    }
}

wb.Save("output.pdf", SaveFormat.Pdf);

If you cannot modify the shapes, simply upgrade to the latest Aspose.Cells build where this rendering bug has been corrected.

Clarifying questions

  1. Which platform and version of Aspose.Cells are you using (e.g., .NET 23.5, Java 22.12, etc.)?
  2. Are you passing any custom PdfSaveOptions when calling Workbook.Save?

To clarify, I am using Apsose.Cells for c++ Version 26.2.
Not the shape itself is mirrored, but the text inside.

@ebrunner,

Thanks for the template Excel file and screenshots.

I reproduced the issue as you mentioned by converting your template XLSX file to PDF. I found text gets mirrored when saving XLSX to PDF.

U16String fileName = outDir + u"zeus_6_EP_OEN5_01.xlsx";
U16String outfileNamePDF1 = outDir + u"out1.pdf";
Workbook wb = Aspose::Cells::Workbook(fileName);
wb.Save(outfileNamePDF1, Aspose::Cells::SaveFormat::Pdf);

We require a thorough evaluation of the issue. 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): CELLSCPP-1212

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.

@ebrunner,

This is to inform you that your issue (Ticket ID: “CELLSCPP-1212”) has been resolved now. The fix/enhancement will be included in the upcoming release (Aspose.Cells for C++ v26.3) that we plan to release in the first half of March 2026. You will be notified when the next version is released.

The issues you have found earlier (filed as CELLSCPP-1212) have been fixed in this update. This message was posted using Bugs notification tool by Aspose Supporter.