OutOfMemoryException when converting to PDF/A-1b

Hi, when trying to convert the file attached to PDF/A-1b an OutOfMemoryException is thrown. Which is strange since the machine used for the conversion has approximately 15 GB free memory when the exception occurs.

When the file is converted PDF 1.5 it works as expected. The file was created by saving a .pptx file as .odp with Microsoft Powerpoint 2019.

Reproduced with Aspose.Slides for .NET 20.5.0 and .NET Core 3.1 (also with .NET Framework 4.6.1)

Here the code used for the conversion

public static void Main(string[] args)
{
  var odpFilePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "OutOfMemory.odp");

  using var odpFileStream = File.Open(odpFilePath, FileMode.Open);
  var presentation = new Presentation(odpFileStream, new LoadOptions(LoadFormat.Odp));

  var pdfFilePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "OutOfMemory.pdf");
  var pdfOptions = new PdfOptions
  {
    Compliance = PdfCompliance.PdfA1b
  };
  presentation.Save(pdfFilePath, SaveFormat.Pdf, pdfOptions);
}

Due to completness here is the given stacktrace

System.OutOfMemoryException
  HResult=0x8007000E
  Message=Out of memory.
  Source=System.Drawing.Common
  StackTrace:
   at System.Drawing.Bitmap.Clone(RectangleF rect, PixelFormat format)
   at    .(    )
   at    .      (    )
   at    .      (    ,  ​  )
   at    .      (    ,  ​  )
   at    .      (    ,  ​  )
   at    .      (    ,  ​  )
   at    .      (    ,  ​  )
   at    .      (    ,  ​  )
   at    .      (    ,  ​  )
   at    .(    ,  ​  )
   at    .(Presentation , Stream , Int32[] , PdfOptions , InterruptionToken )
   at    .(Presentation , Stream , PdfOptions , InterruptionToken )
   at Aspose.Slides.Presentation.Save(Stream stream, SaveFormat format, ISaveOptions options)
   at Aspose.Slides.Presentation.Save(String fname, SaveFormat format, ISaveOptions options)
   at AsposeOutOfMemoryRepo.Program.Main(String[] args)

Could you check and assist. Thank you in advance.

OutOfMemory.zip (669.6 KB)

@matrohm,

I have observed the issue shared by you and have been able to observe the issue. A ticket with ID SLIDESNET-41989 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

The issues you have found earlier (filed as SLIDESNET-41989) have been fixed in this update.