Aspose PDF PdfConverter.GetNextImage() fails on a specific PDF file

Hi,

In our vb.net app that uses Aspose.PDF, we are having an issue converting a specific PDF file to image. We use PdfConverter but when PdfConverter.GetNextImage() is called, it throws the exception:
System.InvalidOperationException: ‘Wrong format of page’s content.’

If this same PDF is opened via Adobe Reader and saved, it works fine afterward. Also, the built-in browsers’ PDF viewers can view this PDF fine.

I’m guessing Adobe or the other PDF viewers are either more tolerant of the file’s format or add any missing data.

I have no idea what is missing, though. I would appreciate any clues on how to fix the file or load it properly in Aspose.

Attached is a sample project with a minimal reproduction code and with the buggy file included.

Regards,
Abdelmageed Mostafa

PDFToImageError.zip (490.4 KB)

@fileboundintegrations

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-58949

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.