Description
Hi,
I am trying to create pdf in java using pdfbox 2.0.7, but problem is I am not able to insert CMYK color space image in pdf.
how to do it?
I am using below code,
PDImageXObject pdImage = PDImageXObject.createFromFileByContent(imageFile, pDDocument);
pdImage.setColorSpace(PDColorSpace.create(COSName.DEVICECMYK));
pDPageContentStream.drawImage(pdImage, x, y, width, height);
Thanks,
Mani