Exception "StackOverFlowException" when converting PDF to PDF/A

Zorgpolis 2019 - Rumping C.pdf (162.4 KB)

With the attached PDF document, Aspose.PDF.Document.Save gets into stack overflow after the document is converted to PDF/A-1a or -1b. Other PDF/A conversions produce a corrupt PDF document with large parts of the text missing.

Sample code:

      Aspose.Pdf.Document pdfdoc = new Aspose.Pdf.Document(filePath);
  using (MemoryStream msLog = new MemoryStream())
  {
    pdfdoc.Convert(msLog, Aspose.Pdf.PdfFormat.PDF_A_1A, Aspose.Pdf.ConvertErrorAction.None);
    pdfdoc.Save(outputFile);
  }

@gertjaap,

Thanks for contacting support.

We have tested this scenario in our environment and have been able to observe the issue that you have mentioned. We have logged issue with ID PDFNET-47465 in our issue tracking system. We will share with you as soon as logged issue is fixed.