Optimize PDF throws ArgumentException

I have a PDF document and when I process it using OptimizeResources function, it throws ArgumentException.

Version info

Aspose.PDF for Net 23.3

Sample Code

void Main()
{
	var pdfDocument = new Aspose.Pdf.Document(@"C:\Users\54390\Desktop\b22303910000048.pdf");
	var optimizeOptions = new Aspose.Pdf.Optimization.OptimizationOptions();
    //If there are the following three lines of code at the same time, an exception will be thrown
	optimizeOptions.ImageCompressionOptions.CompressImages = true;
	optimizeOptions.ImageCompressionOptions.ResizeImages = true;
	optimizeOptions.ImageCompressionOptions.MaxResolution = 300;
	pdfDocument.OptimizeResources(optimizeOptions);
}

Demo file

b22303910000048.pdf (2.9 MB)

@sullivan

We are checking it and will get back to you shortly.

@sullivan

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-54047

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.