HTML to PDF / DOCX / RTF Java converter library Forums PD4ML v3 Archived Forums (Read Only) HTML/CSS rendering issues PD4ML .Net library not distorting 32bit-depth jpeg images

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #27170

    Hello,

    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

    -Ganesh M.

    #30100

    Please send an image sample to support pd4ml com. We’ll check if the type of images can be supported.

    #30101

    sent an email… didn’t receive any response

    #30102

    Any update here?

    #30103

    Sorry the analyze has taken that long.

    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)
    at sun.awt.image.JPEGImageDecoder.produceImage(JPEGImageDecoder.java:141)
    at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:269)[/language:cph4q87h]

    Adding a dependence to capable JAI library is undesired.

    #30104

    Hello,

    yes this is critical for our application to get support to this. When do you think can release a patch with this fix

    -Ganesh M.

Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.