CSS for cmyk output

Having trouble installing Oxygen PDF Chemistry? Got a bug to report? Post it all here.
Leighb
Posts: 11
Joined: Tue Apr 08, 2025 7:32 pm

CSS for cmyk output

Post by Leighb »

I am using Oxygen 27.1 and Chemistry 27.1. I am trying to change my colors specs from rgb to cmyk but I getting an error in the editor and an immediate fail when running the pdf transformation scenario.
This is what I have for my css:

Code: Select all

article[outputclass~="domain_intro"] h1.title {
  color: -oxy-cmyk(90%,48%,0%,0%);
  font-weight: bold;
}
This is the error message: “-oxy-cmyk(90%,48%,0%,0%)” is not a “color” value : -oxy-cmyk(90%,48%,0%,0%) Context: article[outputclass~="domain_intro"] h1.title in property: color

What am I missing? Please help! (The deadline is past due and the printer is screaming!)

Thanks,
Leigh
julien_lacour
Posts: 752
Joined: Wed Oct 16, 2019 3:47 pm

Re: CSS for cmyk output

Post by julien_lacour »

Hello Leigh,

There is no -oxy-cmyk() function, and Oxygen PDF Chemistry also doesn’t support the device-cmyk() function (just as browsers don’t).
This function is only indicated in CSS Color Module Level 5 which is still a W3C Working Draft (last updated: 18 March 2025): https://www.w3.org/TR/css-color-5/#device-cmyk
CMYK is a print-oriented color model, but in most cases, PDFs are displayed on screens, which rely on RGB model.
However I added your vote to the feature request, when it will be available you will be notified on this thread.

Regards,
Julien
Leighb
Posts: 11
Joined: Tue Apr 08, 2025 7:32 pm

Re: CSS for cmyk output

Post by Leighb »

Thanks Julien. I spent a lot of time digging into different options. Glad I asked. We send a pdf to our printer who uses the file to print in cmyk. Are there any other option for producing a file out of Oxygen that would product a file in cmyk that I could send to our printer?

Leigh
julien_lacour
Posts: 752
Joined: Wed Oct 16, 2019 3:47 pm

Re: CSS for cmyk output

Post by julien_lacour »

Hello Leigh,

Unfortunately, Oxygen does not currently generates files supporting the CMYK color model. However, I’ve added your request to our feature list, and we will revisit it in the future. You’ll be notified as soon as this becomes available.

Regards,
Julien
Post Reply