We have an issue trying to convert a blank pdf page to png.
With version 18.12.0, we get a NullReferenceException trying to read the ‘Contents’ property of an Aspose.PDF.Page :
bool hasContent = page.Contents.Any();
With version 19.9.0, we get an InvalidOperationException instead.
This issue seems to be related to the way the pdf was generated (with 2A55SAM Spool-a-Matic by Gumbo Software Inc V2R7M0). When we open the pdf file with notepad, we can see the blank page content is set to ‘null’ (/Type /Page /Parent 146 0 R /Contents null /Resources 2 0 R /MediaBox [ 0 0 595 841 ] >>) while other pdf generators usually set a blank page with an empty array (/Contents ).