Thank you for contacting support.
You can set optimization options by using below code snippet in your environment.
Document doc = new Document(@"D:\Example.pdf");
//var optimizationOptions = new Document.OptimizationOptions();
var optimizationOptions = new Aspose.Pdf.Optimization.OptimizationOptions();
optimizationOptions.ImageCompressionOptions.CompressImages = true;
optimizationOptions.ImageCompressionOptions.ImageQuality = 50;
optimizationOptions.ImageCompressionOptions.MaxResolution = 900;
optimizationOptions.ImageCompressionOptions.ResizeImages = true;
We hope this will be helpful. Moreover, a ticket with ID PDFNET-45649 has been logged in our issue management system for correction of spellings. We will let you know as soon as the ticket will be resolved.