We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Shrink or Optimize Existing PDFs using Aspose API?

I have a PDF which I have received from an upstream system. The file size is huge (> 50 MB). I have noticed that if I open the PDF with Adobe Acrobat and simply resave the file, Acrobat performs some optimizations that shrinks the file size to under 10mb.

Is it possible to perform such optimizations using the Aspose API?

Hi Arjun,

Could you please try using setCompressionLevel property and then use the PdfFileStamp class just to open and save the PDF file, without any other operations? If it doesn’t help then please do let us know.