In my pdf file, i add images and text as below : Image img = Image.getInstance (fileName); // type png or jpg document.add (img); Paragraph p = new Paragraph (); document.add (p); I want to convert it to DeviceCMYK mode for printing. But in the book said : "iText doesn’t convert RGB colors into CMYK".
currently i am generating a pdf using weasyprint version 52.5. The pdf generated is in RGB but i need it in CMYK for printing. Now i tried converting it using ghostscript version 9.50 which works just fine, but my generated PDF always consists of texts in rich black. I did find a solution to convert the RGB(0,0,0) to plain black(K=100%). When an image is converted from RGB to CMYK, all of the colors in the image are separated by two spaces. In the absence of Photoshop, you can convert RGB to CMYK using a variety of methods. The simplest method is to use an online converter like Procreate or Paint. In image manipulation software, RGB scale is used to generate an image. HTfUfMR.