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.

The issues you have found earlier (filed as PDFNET-57177) have been fixed in Aspose.PDF for .NET 24.7. This message was posted using Bugs notification tool by asad.ali

Thank you - I can confirm the issue has been resolved.

@dbartle

Thanks for the feedback. Please let us know by creating a new topic in case you need any kind of assistance.