Skip to content

Adobe Acrobat Pro raises "Insufficient data for an image." error

When the attached PNG image with base64 encoding is included in a XML document, the Adobe Acrobat Pro PDF reader raises an "Insufficient data for an image." error. The PDF can be displayed with other readers though, like the ones integrated in Firefox or Edge.

How to reproduce

  • Start MigraDocPreviewer.
  • Select the attached file XML and use any valid JSON file.
  • The preview will yield the error "Insufficient data for an image".

System Information

  • "Adobe Acrobat Pro" Continuous Release 2025.001.20435, 64-Bit
  • Windows 10 Enterprise 22H2
  • MigraDocXML github repository updated to latest commit.

If I extract the PNG file from the PDF, I can see that it was modified. So I guess the compression could be the issue.

layout2.xml L3

Edited by Simon Fetzel