Generated PNG through PngDevice can't be opened in Firefox

I generate PNGs from a PDF (one for each page). The generated PNGs can be opened in Chrome, Opera and Edge, but Firefox keeps saying “image corrupt or truncated”:

image.png (15.3 KB)

The Image is generated with Aspose.Pdf Version 22.12.0.

I’ve created a little sample html-file which demonstrates this (attached). (19.3 KB)


Would you please share your sample PDF and the complete code snippet that you are using for conversion? We will test the scenario in our environment and address it accordingly.

This happens with ALL created PNG, nevertheless I’ve attached a mini Visual Studio solution which demonstrates this with one example PDF. (82.9 KB)


We are checking it and will get back to you shortly.

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

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.