NotImplementedException in Aspose.PDF for .NET

We are using Apose.PDF Version 18.11

Code looks like this:

OptimizationOptions options = new OptimizationOptions
{
ImageCompressionOptions =
{
CompressImages = true,
ImageQuality = quality
},
AllowReusePageContent = true,
RemoveUnusedObjects = true,
RemoveUnusedStreams = true,
LinkDuplcateStreams = true
};
pdfDocument.OptimizeResources(options);

We get the System.NotImplementedException

Stack Trace:
at Aspose.Pdf.XImage.Save(Stream stream, ImageFormat format, Int32 resolution)
at .(OperatorCollection , Resources )
at .(Document )
at ​ .(OptimizationOptions )
at Aspose.Pdf.Document.OptimizeResources(OptimizationOptions strategy)

Hint, in particular pdf are two black and white images.

@domagoj.mohl.wienerz

Thanks for contacting support.

Would you please share your sample PDF document with us so that we can test the scenario in our environment and address it accordingly.