Aspose PDF Large File Size in version 18.7

Please how can this be fixed? I am using the code below and yet still experiencing the large file size of the pdf. Please see code below. Please note i am using a paid licence

     document.OptimizeResources(new Document.OptimizationOptions()
                {
                    LinkDuplcateStreams = true,
                    RemoveUnusedObjects = true,
                    AllowReusePageContent = true,
                    RemoveUnusedStreams = true,
                    UnembedFonts = false,
                    CompressImages = true,
                    ImageQuality = 12,
                    ResizeImages = true
                });
           
                // Save updated PDF
                document.Save($@"C:\MyPDF.pdf");

@sadogeri

We have responded to your similar query in this thread. You may please follow up there.

PDF Assets.zip (625.6 KB)

i realized if i add a single image (PNG) of size 300kb to the current images in the assets folder, the output PDF then increases to from 2mb to 3mb, but as it is with the few images it is the output PDF is 2mb, which isn’t an acceptable size based on the few assets. I have also included the created output PDF for you to examine.

Thanks again for getting back to me.

@sadogeri

We have shared our feedback in your other similar thread. We request you to please follow up there.