I am migrating from FOP 1.0 to FOP 2.0
I have made the required Java code changes as per the changed API.
There are PNG images used in the report generated using PDF renderer..
Initially with FOP 1.0, I tried ImageLoaderPNG. However, the resolution of the image gets impacted. So I shifted to ImageLoaderRawPNG which rendered it properly.
So this was working fine with FOP 1.0
However, FOP 2.0 is not able to render the image with ImageLoaderRawPNG and throws exception..
Attached the PNG image, exception and the intermediate XSL-FO file (partial) generated with ImageLoaderRawPNG.