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.