New Forum | Previous | Next | (P-PDF) Developers
Topic: Replacing a CMYK Image in a PDF file
Conf: (P-PDF) Developers, Msg: 58950
Date: 5/29/2002 05:35 PM
I am in the process of developing an application that can replace JPEG =images within a PDF file ( Which uses the DCTDecode filter).
It only works when the PDF file has the color space set to CalRGB in the =Image Dictionary and the replacing image is a RGB jpeg.
If the PDF file has the color space set to DeviceCMYK and the replacing =image is a CMYK jpeg it does not work.
It throws an error 'read less image data' instead.
Can someone please help me on this matter?
PS: I am also updating the width and height in the PDF files Image =dictionary with the newly replaced image's dimensions.
(File attachment removed)