Converting XLS document to PDF in huge size

Hi Support,

We are using Aspose.Cells for document conversion. for particular files which contains mostly images, the output document size is dramatically huge. Kindly check and lets us know what could be the reason?

input document size: 1.35MB

output PDF size: 9.02 MB

See attached sample input document

NOTE: we are converting document in PDF with PDF/1A compliance and using Aspose.Cells for .NET 7.4.2.0 release

Regards

Wahaj

Hi,

Thanks for your posting and using Aspose.Cells.

Please download and use the latest version: Aspose.Cells
for .NET v7.4.3.1
. It works fine.

The latest version generated the pdf of size 7MB. Below is a sample test code used to generate the output pdf.

C#


string filePath = @“F:\Shak-Data-RW\Downloads\landscape\landscape.xls”;


Workbook workbook = new Workbook(filePath);


PdfSaveOptions opts = new PdfSaveOptions();

opts.Compliance = PdfCompliance.PdfA1b;


workbook.Save(filePath + “.out.pdf”, opts);


Hi Shakeel,

Alright the size little bit decreased but its still huge as per our expectations.

Just imagine the document of size 1.38MB converted in 7.07MB almost 5-times larger even resources are also embedded in the source document.

Kindly try to improve it more.

Regards,

Wahaj

Hi,

Thanks for your posting and using Aspose.Cells.

We have logged your requirements in our database. We will look into this issue and try to improve the size of the output pdf. Once, the issue is resolved or we have some other update for you, we will let you know asap.

This issue has been logged as CELLSNET-41671.

@Wahaj_Khan

With the latest fix v21.6.5, the size of output pdf file is about 3MB now.

Aspose.Cells21.6.5 For .Net2_AuthenticodeSigned.Zip (5.5 MB)
Aspose.Cells21.6.5 For .Net4.0.Zip (5.5 MB)
Aspose.Cells21.6.5 For .NetStandard20.Zip (5.5 MB)