Get lighter PDF files (from Excel) with Aspose.Cells and/or Aspose.Pdf

From the Excel file "source.xml" was created the "unoptimized.pdf" with the following code:

Aspose.Cells.PdfSaveOptions tmpPdfOptions = new Aspose.Cells.PdfSaveOptions();
tmpPdfOptions.OnePagePerSheet = false;
tmpPdfOptions.EnableHTTPCompression = true;

Aspose.Cells.Workbook workbook = new Aspose.Cells.Workbook("source.xml");
workbook.Save("unoptimized.pdf", tmpPdfOptions);


From that "unoptimized.pdf" was created the "optimized.pdf" with the following code:

Aspose.Pdf.Document input = new Aspose.Pdf.Document("unoptimized.pdf");
Aspose.Pdf.Document optimized = new Aspose.Pdf.Document();
optimized.Pages.Add(input.Pages);
optimized.OptimizeResources(new Aspose.Pdf.Document.OptimizationOptions()
{
LinkDuplcateStreams = true,
RemoveUnusedObjects = true,
RemoveUnusedStreams = true
});
optimized.Save("optimized.pdf"));


The "unoptimized.pdf" file size is "103kb"
The "optimized.pdf" file size is "102kb"

We have noticed that with "source.xml" printed with Amyuni (2.51 and 4.0 versions) lighter files are generated independently of the embedded fonts.

Could you give us any suggestions to make Aspose.Cells and Aspose.Pdf generate lighter PDF files?
If not: Do you have any idea of why Amyuni generate lighter PDF files?

Thanks in advance.

Hi there,


Thank you for your request. Our support team are looking into this request and will answer as soon as possible, please hold tight.
Thanks,

Hi Santiago,


Thanks for your inquiry. We will appreciate it if you please share PDF file generated through Amyuni. We will investigate the difference and will provide you information accordingly.

We are sorry for the inconvenience caused.

Best Regards,

Hi Santiago,


I have tested the scenario and have observed that size of PDF is not being optimized. For the sake of correction, I have logged this problem
as PDFNEWNET-37349 in our issue tracking system. We will further
look into the details of this problem and will keep you updated on the status
of correction. Please be patient and spare us little time. We are sorry for
this inconvenience.