cmyk

This example shows the usage of CMYK for text and the capability to include images with CMYK colorspace.

Repository files

PDF files

Converter Status PDF Preview
PDFreactor  OK
PrinceXML  OK
Antennahouse  OK

HTML input

<html>
    <head>
        <link rel="stylesheet" type="text/css" href="styles.css" />
    </head>
    <body>

        <h1>This is text in CMYK</h1>
        <p id="cmyk">
        Pulvinar non pellentesque pellentesque nisi nascetur elementum platea
turpis, eu, pulvinar et, a mauris, etiam vel, facilisis mus, egestas in dapibus
sagittis ac mattis. Phasellus massa cum, habitasse augue sagittis, turpis
penatibus auctor sagittis aenean in! Aenean porta tincidunt ultricies est
lorem, facilisis dignissim tempor auctor ut sociis pulvinar eros egestas eros
placerat habitasse, mid sed mattis velit platea aliquam, purus lorem, lacus et
integer, natoque augue a, facilisis augue, mattis cras! A pid mattis lorem urna
rhoncus. Elementum tincidunt, mus elementum turpis quis ridiculus eu odio
egestas, elit auctor turpis mus platea sed, rhoncus tempor, augue dictumst
phasellus tortor, ac. Massa sagittis sociis integer mid magna a turpis
pellentesque, placerat lundium! Lacus, enim mus odio placerat? Nec cursus
augue.
        </p>

        <h1> This is a CMYK image </h1>
        <img src="Channel_digital_image_CMYK_color.jpg" style="width: 80%"/>
        <div>
            Source: https://upload.wikimedia.org/wikipedia/en/2/25/Channel_digital_image_CMYK_color.jpg
        </div> 
    </body>
</html>

Stylesheet

@import url("../styles/a5.css");

p {
    font-size: 12pt;
}

#cmyk {
    border: cmyk(0.5, 0.1, 0.0, 0.2) solid thick;
    background: cmyk(0, 0.3, 0.2, 0);
    color: cmyk(0.8, 0.5, 0.0, 0.3);
}