Size error when converting to Excel pdf


#1

Hi,
The original document is 4 mb in size. But when the document is uploaded to the system and converted to pdf, the size is 33 mb.
I attached the original file and corrupted file. We are using Aspose.Excell 19.1.5 version. Thanks.
YG7915.zip (4.8 MB)


#2

@srmbimser,

We were able to observe the issue with below code 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.

        // Instantiate new workbook
        Workbook workbook = new Workbook(dataDir + "Original Dokument.xlsx");

        // Define PdfSaveOptions
        PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();


        // Set minimum size
        pdfSaveOptions.OptimizationType = PdfOptimizationType.MinimumSize;          

        // Save the file            
        workbook.Save(dataDir + "output.pdf", pdfSaveOptions);

This issue has been logged as

CELLSNET-46673 - File Size problem when converting Excel to PDF

#3

@srmbimser,

This is to inform you that we have fixed your issue (logged earlier as “CELLSNET-46673”) now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.


#4

@srmbimser,

Please try our latest version/fix: Aspose.Cells for .NET v19.3.5:

Aspose.Cells19.3.5 For .Net2_AuthenticodeSigned.Zip (4.9 MB)
Aspose.Cells19.3.5 For .Net4.0.Zip (4.9 MB)

Your issue should be fixed in it. The output file size is about 4.5 MB now with the following code:

Workbook wb = new Workbook(srcFile);

wb.Save(outFile.pdf);

Let us know your feedback.


#5

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