Background: We have purchased Volume license of Pd4ML recently
I Am generating PDF with images using pd4ml.. however we experienced that the 32 bit depth images are coming as distorted in output pdf.. if I take the same image and downgrade it to 24 bit depth.. there is not problem with the 24bit depth image in output pdf.
Is there a limitation on pd4ml library in dealing with 32 bit depth images
We finally found the problem reason and prototyped a solution.
In fact the JPEG images you provided are not 32bit-depth, but 4-component CMYK images (8 bit per color component).
As the image type is mostly used in typography and not natively supported by Java, we did not implement a support for them yet.
An improved JPEG parsing and CMYK color space support implementation may take some time.
Is it really critical for your application to support the image types or a converting of your (probably few) existent CMYK JPEGs to RGB is also a solution?
A “semi-solution” for the issue to convert CMYK to RGB by PD4ML on a fly is unfortunately not an option as Java does not support them and fails with
[language=java:cph4q87h]sun.awt.image.ImageFormatException: Unsupported color conversion request
at sun.awt.image.JPEGImageDecoder.readImage(Native Method)
Adding a dependence to capable JAI library is undesired.