Font size in pdf creates larger files than competitors

We’re evaluating which HTML to PDF converter we’re going to use in a project and so far things are looking for Aspose. However, we’ve found two problem. The first one is size

The reason for this is that the fonts are much larger than what for example ABCPdf, Winnovative or Playwright adds to the PDF.

I’ve tested with the optimize settings found in this forum

var x = new Aspose.Pdf.License();
x.SetLicense(“Aspose.lic”);

HtmlLoadOptions options = new HtmlLoadOptions();
Document pdfDocument = new Document(“test.html”, options);

var optimizationOptions = new Aspose.Pdf.Optimization.OptimizationOptions();
optimizationOptions.RemoveUnusedObjects = true;
optimizationOptions.RemoveUnusedStreams = true;
optimizationOptions.AllowReusePageContent = true;
optimizationOptions.LinkDuplcateStreams = true;
optimizationOptions.UnembedFonts = true;
optimizationOptions.ImageCompressionOptions.CompressImages = true;
optimizationOptions.ImageCompressionOptions.ImageQuality = 100;
optimizationOptions.ImageCompressionOptions.ResizeImages = true;
pdfDocument.OptimizeResources(optimizationOptions);
pdfDocument.Optimize();
pdfDocument.Save($“aspose-optimize.pdf”);

Aspose file size 74kb:
image.png (5.9 KB)

Abcpdf file size 31kb
image.png (6.7 KB)

This is just one small example but holds of for larger documents as well.

Any ideas what can help?

The two pdf files:

abcpdf.pdf (30.9 KB)

aspose-optimize.pdf (73.4 KB)

HTML Code
test.zip (2.5 KB)

@andreasjohansson

We need to investigate this case in detail. Therefore, have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-58194

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.