Free Support Forum - aspose.com

Image missed after XLSX to PDF conversion


#1

Hi Aspose team,
We want to report an issue with XLSX to PDF conversion.
After conversion to PDF document, it is losing image. Probably the image has some specific settings or it is because of document restrictions (image does not response on actions like select/move/right click), we not sure, this document was sent to us as example from our customers. But the fact is that MS Excel can convert to PDF without image losing.

See Issue: LostImage.png (74.1 KB)

Code sample:

    private static void ConvertExcelToPDF(string inputFile, string outputFile, string openPassword)
    {
        Workbook wb = new Workbook(inputFile, new LoadOptions() { Password = !string.IsNullOrEmpty(openPassword) ? openPassword : null });
        if (File.Exists(outputFile))
            File.Delete(outputFile);
        wb.Save(outputFile, SaveFormat.Pdf);
    }

Documents:
Example.zip (101.6 KB)

Reproduced with Aspose.Cells.dll versions: 18.2.0.0, 18.9.0.0, 18.11.0.0, 18.12.0.0. Did not check other versions.
Could you help with resolving this issue?
Thanks in advance.


#2

@licenses,

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

CELLSNET-46529 - Image missing after XLSX to PDF conversion

#3

@licenses,

Please try our latest version/fix: Aspose.Cells for .NET v18.12.9 (attached)

Your issue should be fixed in it.

Let us know your feedback.

Aspose.Cells18.12.9 For .Net4.0.Zip (4.7 MB)
Aspose.Cells18.12.9 For .Net2_AuthenticodeSigned.Zip (4.7 MB)


#4

The issues you have found earlier (filed as CELLSNET-46529) have been fixed in Aspose.Cells for .NET v19.1. This message was posted using BugNotificationTool from Downloads module by Amjad_Sahi