CSS for cmyk output

Having trouble installing Oxygen PDF Chemistry? Got a bug to report? Post it all here.
Leighb
Posts: 10
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: 737
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
Post Reply