1
<!DOCTYPE document SYSTEM "rml_1_0.dtd">
2
<document filename="test_034_cmyk.pdf" invariant="1">
4
<color id="CMYK_WHITE" RGB="PCMYKColor(100, 100, 100, 0)"/>
5
<color id="CMYK_BLACK" RGB="PCMYKColor(0, 0, 0, 100)"/>
8
<template pageSize="letter" leftMargin="72" showBoundary="1">
9
<pageTemplate id="main" pageSize="A4">
11
<setFont name="Helvetica-BoldOblique" size="18"/>
12
<drawRightString x="523" y="800">RML2PDF Test Suite</drawRightString>
13
<fill color="[1,0,0,0]"/>
14
<rect x="100" y="600" width="50" height="50" fill="1"/>
15
<fill color="[0,1,0,0]"/>
16
<rect x="200" y="600" width="50" height="50" fill="1"/>
17
<fill color="[0,0,1,0]"/>
18
<rect x="300" y="600" width="50" height="50" fill="1"/>
19
<fill color="PCMYKColor(0,50,85,20,spotName='PANTONE 288 CV')"/>
20
<rect x="400" y="600" width="50" height="50" fill="1"/>
22
<frame id="first" x1="1in" y1="3in" width="6.27in" height="3in"/>
27
<paraStyle name="normal" fontName="Helvetica" fontSize="10" leading="12" textColor="[0,0,0,1]"/>
28
<paraStyle name="h1" parent="normal" fontName="Helvetica-BoldOblique" fontSize="32" leading="36"/>
29
<paraStyle name="spaced" parent="normal" spaceBefore="12" spaceAfter="12"/>
33
<para style="normal">This is a test of CMYK support.
35
<para style="normal">The four swatches above should be in the CMYK primaries, and the paragraph carefully
36
declares the text color to be process black (k=1).
39
<para style="normal">This is cmyk white text on cmyk black rectangle</para>
41
<illustration height="15" width="144">
42
<setFont name="Helvetica-Bold" size="12"/>
43
<fill color="CMYK_BLACK"/>
44
<rect x="0" y="0" width="144" height="15" fill="yes" stroke="no"/>
45
<fill color="CMYK_WHITE"/>
46
<drawString x="1" y="4">Hello World</drawString>
49
<para style="normal">This is rgb white text on rgb black rectangle</para>
51
<illustration height="15" width="144">
52
<setFont name="Helvetica-Bold" size="12"/>
54
<rect x="0" y="0" width="144" height="15" fill="yes" stroke="no"/>
56
<drawString x="1" y="4">Hello World</drawString>
59
<para style="normal">This is rgb white text on cmyk black rectangle</para>
61
<illustration height="15" width="144">
62
<setFont name="Helvetica-Bold" size="12"/>
63
<fill color="CMYK_BLACK"/>
64
<rect x="0" y="0" width="144" height="15" fill="yes" stroke="no"/>
66
<drawString x="1" y="4">Hello World</drawString>
69
<para style="normal">This is cmyk white text on rgb black rectangle</para>
71
<illustration height="15" width="144">
72
<setFont name="Helvetica-Bold" size="12"/>
74
<rect x="0" y="0" width="144" height="15" fill="yes" stroke="no"/>
75
<fill color="CMYK_WHITE"/>
76
<drawString x="1" y="4">Hello World</drawString>