Convert PDF to PDFA in .NET API using Aspose.PDF - Memory issue

Hi Team,

I’m facing a problem with converting one small pdf file (11 Mb) to pdfa format. A process takes about 5 minutes and finished successfully, however the result is empty. Also, conversion consumes a very large amount of memory (up to 10 Gb). I’m using Aspose.Pdf 19.8.0 (20.1.0 gives the same results), net core 2.1 and a peace of code below:

using (var pdfADoc = new Document(fileToConvert))
  using (var logStream = new MemoryStream())
    pdfADoc.Convert(logStream, PdfFormat.PDF_A_1B,						 
    doc.Info.ModDate = DateTime.Now;
    var options = new Aspose.Pdf.PdfSaveOptions
        WarningHandler = Instance.CustomPdfWarningHandler ?? new HandlePdfWarnings()
    pdfADoc.Save(destination, options);

Diagnostic screenshot:
image.png (59.7 KB)

File to process:
Askøy (8.5 MB)

Thank you

Best regards,


Thanks for sharing the details.

I have tested the scenario and and I have logged investigation ticket with ID as PDFNET-47758 in our issue tracking system. We will further look into the details of this problem and will keep you updated on the status of correction. Please be patient and spare us little time. We are sorry for this inconvenience.