PDF Compression

Posted by: isemkiv on 17 May 2022, 4:33 pm EST

  • Posted 17 May 2022, 4:33 pm EST

    My company considering to buying GrapeCity Documents for PDF library.

    One of the feature we need is the compression of the pdf files.

    I made quick test. І wrote code :

    var pdfDocument = new GcPdfDocument();
    pdfDocument.PdfVersion = "1.6";
                pdfDocument.ImageOptions.CompressColors = true;
                pdfDocument.ImageOptions.JpegQuality = 1;
                pdfDocument.ImageOptions.Format = ImageOptions.ImageFormat.Auto;
                pdfDocument.CompressionLevel = System.IO.Compression.CompressionLevel.Optimal;
                pdfDocument.FontEmbedMode = FontEmbedMode.NotEmbed;
                pdfDocument.Save(outputStream, SaveMode.Linearized);

    … and try compress different files. The size of the file after “compression” is the same or even greater.

    Can You help me with this? There are possibility to edit the embedded images? I’m thinking about the resolution’s change or/and convert image to greyscale.

    Can I copy only images and texts from one pdf to another without attachments, notes and so on?

  • Posted 17 May 2022, 8:59 pm EST

  • Posted 4 April 2023, 9:39 am EST

    Looks like there is an issue with the Duplicate url. Both threads have the same subject which seems to be how the unique threads are identified.

  • Posted 4 April 2023, 9:26 pm EST


    The link was missed due to the website migration done last year.

    For this particular thread, the issue was related to a specific pdf so you can share your pdf if you are facing any issues with it.

    >>Can You help me with this? There are possibility to edit the embedded images?

    GcPdf does not have the functionality to replace existing images. It is in our plans but as of now, there is no ETA.


    Prabhat Sharma.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels