Optimization is turning pages to black

Hello,

I am trying to optimize a pdf but as a result I am getting a doc which has black pages.

The Code I am using is

var optimizationOptions = new Aspose.Pdf.Optimization.OptimizationOptions();
optimizationOptions.RemoveUnusedObjects = true;
optimizationOptions.RemoveUnusedStreams = true;
optimizationOptions.AllowReusePageContent = true;
optimizationOptions.LinkDuplcateStreams = true;
optimizationOptions.UnembedFonts = false;
optimizationOptions.ImageCompressionOptions.CompressImages = true;
optimizationOptions.ImageCompressionOptions.ImageQuality = 50;
optimizationOptions.ImageCompressionOptions.ResizeImages = true;
Pdf.OptimizeResources(optimizationOptions);
Pdf.Optimize();optimized.pdf (540.3 KB)
Anthem OH LOA Certified Mail 2-18-2112.pdf (922.5 KB)

@talhamalik97

The issue was replicated at our end using Aspose.PDF for .NET 21.2. Hence, it has been logged in our issue tracking system under the ticket ID PDFNET-49598. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.