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)