pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "BOOMINATHAN MANIKANDAN (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PDFBOX-4238) How to insert CMYK image without convert to RGB
Date Tue, 05 Jun 2018 13:16:00 GMT
BOOMINATHAN MANIKANDAN created PDFBOX-4238:
----------------------------------------------

             Summary: How to insert CMYK image without convert to RGB
                 Key: PDFBOX-4238
                 URL: https://issues.apache.org/jira/browse/PDFBOX-4238
             Project: PDFBox
          Issue Type: Bug
          Components: PDModel
         Environment: Java
            Reporter: BOOMINATHAN MANIKANDAN


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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Mime
View raw message