Compress PDF file

I have Aspose.pdf version 7.2 and I want to know that is there any way to compress the pdf file using Aspose.pdf?

I have tried with OptimizeResourse() method but it did not work.

Please let me know if there is any other method available in the Aspose.PDF to reduce the size of pdf file.

Thanks.

Hi Prapti,


Thanks for using our API’s.

The OptimizeResourse() method provides the capabilities to compress/optimize PDF file size. Also please note that in recent release versions, we have made numerous improvements in this method. Can you please try using the latest release and in case the problem sill persists, please share the resource PDF file. We are sorry for your inconvenience.

For further details, please check Optimize PDF file size

Hi, Thanks for quick response.

I have already tried with the suggested code sample and I am not able to compress the pdf file. I am having Aspose.pdf 7.2 and I need this to work with this version only.

Hi Prapti,


Thanks for your feedback. We will appreciate it if you please share your sample PDF file here, we will test the scenario at our end and will provide you information accordingly.

Moreover, please not that we maintain a single code base of Aspose Components, so all the fixes and new features/enhancements are implemented in latest version of DLL. We will be unable to provide a hotfix for any old version so we always recommend customers to use latest versions.

We are sorry for the inconvenience caused.

Best Regards,