Aspose.PDF BmpDevice.Process infinite loop

For some simple PDF documents (perhaps invalid), when using BmpDevice.Process for a page, the method call never returns.

        using Aspose.Pdf.Document pdfDocument = new(inputFile);
        using MemoryStream pdfMemoryStream = new();
        Resolution resolution = new(96);
        BmpDevice bmpDevice = new(resolution);
        bmpDevice.Process(pdfDocument.Pages[1], pdfMemoryStream);
        Bitmap pdfBitmap = (Bitmap)Bitmap.FromStream(pdfMemoryStream);

InfiniteLoopPdf.pdf (98.6 KB)

@dbartle

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-57177

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Note the same file will also fail extracting text:

        using Aspose.Pdf.Document thePdfDocument = new(inputFile);
        TextAbsorber textAbsorber = new() { TextSearchOptions = new(false) { IgnoreResourceFontErrors = true } };
        thePdfDocument.Pages[1].Accept(textAbsorber);

@dbartle

Do you mean it hangs or it throws some error?

Same behavior - it hangs apparently in an infinite loop

@dbartle

The information of the ticket has been updated accordingly and we will inform you once we have some updates to share. Please spare us some time. We apologize for the inconvenience.