Skip to content

Tag Definition: overprint

Generated by rlextra version 4.3.0a1

Attributes

Name

Required?

Default_Value

Values

mode

required

None

['overprint', 'knockout']

Can contain
EMPTY

Purpose

This lets you decide the method to handle overlapping objects either merging them or knocking out a color.

See the relevant docs page here. See the relevant rml sample here.

Example usage

<document filename="test_045_overprint.pdf" colorSpace="CMYK">
    <docinit>
        <color id="Cyan" CMYK="[1,0,0,0]" />
        <color id="Magenta" CMYK="[0,1,0,0]" />
    </docinit>
    <template>
        <pageTemplate id="main">
            <pageGraphics>
                <overprint mode="overprint"/>
                <fill color="Cy"/>
                <rect x="75" y="500" width="50" height="50" fill="1"/>
                <fill color="Mag"/>
                <rect x="100" y="525" width="50" height="50" fill="1"/>
                <overprint mode="knockout"/>
                <fill color="Cy"/>
                <rect x="175" y="500" width="50" height="50" fill="1"/>
                <fill color="Mag"/>
                <rect x="200" y="525" width="50" height="50" fill="1"/>
            </pageGraphics>
            <frame id="main" x1="35" y1="45" width="525" height="490"/>
        </pageTemplate>
    </template>
    ...
</document>

Note: Only relevant sections are used in this snippet. Some tags were not included. See some of our samples for further insight of how you may go about setting up a full document using rml.

Example of nesting path from the parent tags to the current tag

<document> ➔ <template> ➔ <pageTemplate> ➔ <pageGraphics> ➔ <overprint>