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");
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();
LinkDuplcateStreams = true,
RemoveUnusedObjects = true,
RemoveUnusedStreams = true
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.