User Manual – Durst

2.7 Variable Fill or Stroke Color

Updated on

In this chapter you will learn

  • how to create a variable fill color and variable stroke color without uploading a CSV file,
  • how to create a variable fill color and variable stroke color based on a CSV file and
  • how to statically colorize a fill or stroke color.

1. General

In practice, the creation of variably filled colored areas or contour lines is not an everyday undertaking in the creation of variable data. However, if the design is to change significantly from printout to printout, variably colored areas and contours can provide a solution as design objects.

Variable colored objects can be needed for the following use cases:

  • Backgrounds - background areas should dynamically adapt to the object in the foreground. In certain cases, this could be used to add a colored background without having to change the design.
  • Filling masked areas - transparent areas in a design can be dynamically filled with color.
  • Price tags - dynamic color adjustment of the background and stroke color of price tags to highlight special actions.
  • Colorizing image areas - in conjunction with the fill methods, areas of an image can be variably colored.

2. Create Variably Filled Objects

You would like to colorize the background of a sticker variably using the color values stored in a CSV file.

Proceed as follows to do so:

  1. Open the desired Article or Print Item in the VDP Editor.
  2. Activate the TG symbol [3] which allows you to immediately recognize transparent areas of the Print Item. Transparent areas are a requirement for creating a variably colored background.
  3. Then select the Rectangle Tool [1].
  4. Create a rectangle from the upper left to the lower right margin in the size of the Print Item plus Bleed. The X and Y position as well as the width and height of the rectangle can be changed later in the Transform settings [4]. The red color for the rectangle [2] immediately shows the user that the rectangle object is placed on the VDP on highest layer.

Figure 1: The Print Item while creating a rectangle with the VDP Rectangle Tool

  1. After releasing the mouse button, a rectangle with a black outline [6] – the default color when creating a VDP object – is created. VDP objects are created by default on the layer VDP on highest layer. In addition, a warning message [5] is displayed. The message indicates that a variable object extends beyond the ImageBox – this is a desired behavior in our case.
  2. Switch to the Layers tab [7].
  3. Move the variable object [8] from the VDP on highest layer layer to the VDP on lowest layer layer and release the mouse button.

Figure 2: The rectangle created with the open Layers tab, with the VDP object still on the highest layer.

  1. The VDP object now takes on the selection color green [11] because it is on the layer VDP on lowest layer.
  2. Switch back to the Transform & General Settings [9] tab to enter the exact coordinates for the rectangle for the X- and Y-position as well as for the Width and Height [10].
  3. Then upload the desired CSV file [12] containing the color values that should be used.

Figure 3: The Transform & General Settings tab, wherein the VDP object can be positioned even more precisely by entering the dimensions

  1. Since only the Fill and Stroke Colors can be changed for VDP objects, the Content tab [13] is not available for editing.
  2. To create a variable color value, you have to switch to the Format [14] tab.
  3. Open the Fill Color Settings [15] and Stroke Color Settings [20] sections.
  4. In the Fill Color Settings, select the Data Source option [16].
  5. Then, in the Data Source drop-down menu, select the Column Title option [17]. In the Column Title drop-down menu [18], select the column in the CSV file that contains the color values. In the Color Space drop-down menu [19], select the color space in which the color values are specified in the CSV file.
  6. In the Stroke Color Settings, select the Color Picker option [21] and set the outline to No Color [22].

Figure 4: The Format tab wherein the VDP object is colorized variably with a Fill Color

  1. The purpose is now fullfilled. Check whether the color values actually change by selecting another data set [23].
  2. Close the creation process by pressing the Save button.

Test data

If you don't want to rebuild everything, you can download the print file and the VDP settings here. Then upload the print file to Workflow and import the VDP settings.

3. Specific Features

Some new specific features are available in conjunction with variable Fill and Stroke Colors. The following description goes into these specific features.

3.1. Create Static Fill or Stroke Colors

In case you would like to color a geometric object in a VDP job, you can do this at any time without having to edit the actual Print Item. Proceed as follows:

  1. Create the desired object using the VDP Object Creation Tools [23].  In the example, the white placeholder area that was intended for affixing a barcode should be colored gray.
  2. Select the Format tab [25] and open the Fill Color Settings area [26] to define the Fill Color.
  3. Select the Color Picker option [27].
  4. Therein, either enter a CMYK color value [28] or select it by clicking on the color circle [30] in the color picker or use system-wide Spot Color definitions [29]. Read more about selecting colors in the Article Create and Edit variable Objects.

Figure 5: The Format tab with defined color values for the Fill Color

3.2. Create Variable Fill or Stroke Colors Without a CSV file

In case you would like to create variable Fill Colors for objects or backgrounds, you can do this without a CSV file. In the following example, the color value should change as follows from record to record:

  • Cyan - the color value always increases by 20% and starts again from 0% when the 100% color value is reached.
  • Magenta - the color value always increases by 10% and starts again from 0% when the 100% color value is reached.
  • Yellow - the color value always increases by 5% and starts again from 0% when the 100% color value is reached.
  • Black - the color value always increases by 1% and starts again from 0% when the 40% color value is reached.

To create this color definition, proceed as follows:

  1. Create the desired object using the VDP Object Creation Tools.
  2. Select the Format tab [31] and open the Data Source settings area [32] to define the Fill Color.
  3. Select the String option [33].
  4. In the input field String [34]  the sample text "Sample Content" is present. Delete this text from the input field.
  5. Click the Insert Placeholder button [35]. In the dialog that appears, select Serial Number, which will insert the string  ${serial_number; start=1; width=1; batch_count=0; repeat_count=0; increment=1}. Additionally enter %,. Now you have the defined the value for Cyan.
  6. To make the Cyan value change as planned, change the following values [35]:
    • Startstart=0
    • Incrementincrement=20
    • Repeat afterrepeat_count=100
  7. Proceed in the same way for the Magenta value. Change the following values:
    • Startstart=0
    • Incrementincrement=10
    • Repeat afterrepeat_count=100
  8. Proceed in the same way for the Yellow value.  Change the following values:
    • Startstart=0
    • Incrementincrement=5
    • Repeat afterrepeat_count=100
  9. Proceed in the same way for the Black value. Change the following values:
    • Startstart=0
    • Incrementincrement=5
    • Repeat afterrepeat_count=100
  10. When you have completed the operation, the following definition will appear in the String [31] input field: ${serial_number; start=0; width=1; batch_count=0; repeat_count=100; increment=20}%,${serial_number; start=0; width=1; batch_count=0; repeat_count=100; increment=10}%,${serial_number; start=0; width=1; batch_count=0; repeat_count=100; increment=5}%,${serial_number; start=0; width=1; batch_count=0; repeat_count=40; increment=1}
  11. Now select the respective color space in the Color Space [38] drop-down menu. In this case, it is CMYK.
  12. Click the Update [36] button to successfully complete the task.

Figure 6: The Format tab with variable color definition for the Fill Color based on a Serial Number

3.3. Create Variable Stroke Color for Dashed Stroke

In case you want to create a dashed stroke which changes its color in a VDP job, you can do so with a few detours. Proceed as follows:

  1. Open the desired Print Item in the VDP Editor.
  2. Prepare the VDP Editor by adding a CSV file containing two columns of color codes.
  3. Create the desired Stroke using the Object Creation Tools [39]. Here, the VDP Bezier Curve Tool was used to create a Bezier path.
  4. Select the Format tab [40] and open the Path Settings [41] area to determine the line thickness. Enter the desired Line Width [42] and make sure that it is a continuous line. Continuous lines are created if the second value in Dash/Gap [43] is set to "0".
  5. Then open the Stroke Color Settings area to define the Stroke Color. First activate the option Data Source [44], then select the entry Column Title in the Data Source option [45]. Then enter the first value for the color in the option Column Title [46]. Subsequently determine the color space in the Color Space [47] option. In this example, the color values are given in CMYK. You have now created a continuous stroke whose color changes from record to record.

Figure 7: The VDP Editor with an irregular shape and the values for the Stroke in the Format tab.

  1. Duplicate the path
    • by copying the VDP object with Ctrl+ C and pasting it again at the original position CTrl+ Shift + V or
    • by moving it while holding down the alt (Windows) or option (Mac) key.  To make the path overlap the previously created path and be in the same position you can use the Arrange functions and enter the X and Y coordinates for the object in the Transform & General Settings tab.
  2. Create a dashed line by specifying the value for the gap [49] in the Stroke/Gap option and selecting the second value for the color definition in the CSV file in the Column Title option [50]. To strengthen or weaken the effect, you can also select a value from the Blend Mode [48] option.
  3. You have now completed the task. Switch between individual data sets to check the effect again.

Figure 8: The VDP Editor with an irregular shape showing the Path Settings and Stroke Color Settings on the Format tab

Overprinting objects

Note that the Overprint and Knockout options are unavailable in the VDP Editor. When a VDP object is set to Knockout the color values of underlying objects, you do not need to take any precautions, as this is the default behavior for overlapping objects. However, if you want a VDP object to overprint, the Multiply entry is available in the Blend Mode option [48] on the Format tab in the VDP Editor. This will give you the same color effect as overprinting.

Article update: Workflow version 1.19.0 – 01/2025

Previous Article 2.6 Variable Images
Next Article 3.1 General Overview
Still Need Help? Contact Us