there is a memory issue in the Aspose.Pdf.Document.OptimizeResources()
I am working with fairly large PDF documents and I can manage to hit an OutOfMemoryExeption. If I look at the memory in the profiler the memory usage increases rapidly.
I created a solution which can recreate the issue. It contains a c# solution and inside you will also find a PDF dummy file generated from Word (FailingPdf.pdf).
Instructions on how to run it can also be found in the solution.
The document has a size of 12,5 MB but when the function runs it breaks at 1,5 GB mem usage (I am running 32 bit).
I am using Aspose.Pdf version 10.6.0.0.
Do you have any workaround or is this an error?