Created attachment 61491 [details] CMYK PDF (made with Scribus) Version: 2.3 (using KDE 4.6.4) OS: Linux Please import PDFs that are created in CMYK color space as CMYK Krita image. Reproducible: Didn't try Steps to Reproduce: open attached PDF in Krita Actual Results: color mode is RGB and thus color are off Expected Results: color mode is CMYK, original colors are kept
Hm... Tricky one... I'm not sure the poppler pdf library we use actually supports that.
poppler does, but the qt bindings does not. (but not using the binding is higly discouraged by the poppler developer).
Hm... so we need to hack poppler-qt a bit. Could be interesting, since it communicates with QImage and doesn't seem to support icc profiles in any way that I can find.
I actually noticed that poppler return a pointer to a lcms profile, so that could be used to at least get the color "not off" when importing the pdf. @Helge, what would be usefull is if you could attach a PDF with cmyk for testing ? (and maybe a screenshot of the expected colors for comparison).
there is one attached already
I'm sorry, but this really is an upstream issue: first poppler-qt will have to support it, so we need to report it there. When that's done, we can take a look.
Just a note on this very old thread because I tested all of this deeply this week. The CMYK PDF page opens as sRGB in Krita. But it looks like the CMYK was converted with a generic profile like ChemicalProof (not the ICC embeded in the PDF). This mistake also can be found in Okular. This is already cool. If one wants to get the image as CMYK (not the page, sorry) you'll have to use pdfimages from the poppler-utils package: $ mkdir extracted $ pdfimages -all input.pdf extracted/output It will extract tiff, jpg or ppm in CMYK; but not profiled. Then you'll still need to convert them manually to the target ICC with Imagemagick (apply simply the profile; no convert/scaling): $ convert output-000.tif -profile /path/to/your/CMYKprofile.icc output-profiled.tif Then you can open in Krita and check the render of your PDF. That's what I do to control if Scribus exports well my picture in CMYK for my printer. I still can't tell if Scribus should profile the picture ; or if it is poppler that extract them and rmeove the profile... I'll write an article about this method and my experience of FLOSS printing workflow & validation.