PDF cannot be compressed properly

When optimizing PDF, we could not process PDF encoded in Mac OS X 10.10.5 Quartz PDFContext. All other types can be optimized as normal


To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input PDF.
  • Please attach the output PDF file that shows the undesired behavior.
  • Please attach the expected output PDF file that shows the desired behavior.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.

static void Main(string[] args)
Document pdfDocument = new Document(“test.pdf”);
var optimizeOptions = new Aspose.Pdf.Optimization.OptimizationOptions();
optimizeOptions.ImageCompressionOptions.CompressImages = true;
optimizeOptions.ImageCompressionOptions.ImageQuality = 75;
optimizeOptions.ImageCompressionOptions.ResizeImages = true;
optimizeOptions.ImageCompressionOptions.MaxResolution = 150;
catch (Exception ex)
The file is too large to upload

image.png (4.6 KB)


Could you please attach your input and problematic output PDF files here for testing?