User Manual – Durst

2.5 Serial numbers

Updated on

In this article, you will learn

  • how to create a Serial number without uploading a CSV file,
  • how to configure parameters for the Serial number, and
  • which specific use cases can be represented using this approach.

1. Introduction

In practice, sequential numbering often needs to be generated and printed – either sorted or randomly arranged – on pre-designed templates. This serves the purpose of unique identification. The data source for the serial numbers can either be created in an external application beforehand and provided as a CSV file Therefore, the data source for the serial number can either be created beforehand in an external application and provided as a CSV file, or it can be generated directly in the VDP Editor without the need to upload a CSV file. Serial numbers are required for the following use cases:

  • Batch numbers – unique numbers for raffles, lotteries, etc.
  • Lot numbers – creating combined number ranges with consecutive numbering.
  • Vouchers – creating a unique number for promotional vouchers.
  • Machine numbers – creating unique numbers for labels used to identify machines or spare parts.
  • IDs/Tags – creating consecutive numbering for IDs or access tags.

2. Creating a Serial Number

You would like to create consecutive numbering on a sticker, based on the following parameters:

  • Seven-digit numbering
  • The smallest number should start at 100, and the largest number should be 9,999,999
  • Centered horizontally within the designated space provided on the sticker
  • Calibri Bold with 8 pt font size
  • In a color that matches the design

To implement this setup, proceed as follows:

  1. Open the relevant Article or the intended Print Item in the VDP Editor.
  2. Select the VDP Text Tool [1].
  3. Draw a horizontal line from the left edge to the right edge of the available space on the Print Item [2]. The line defines, on the one hand, the start and end positions between which the serial number will be placed, and on the other hand, the baseline from which the serial number is generated. The X and Y positions of the serial number can be adjusted at any time. The red color of the line immediately indicates to the user that the serial number is placed on the VDP layer at the topmost level [2].

Figure 1: The Print Item while drawing the text position with the Text Tool

Warning is Displayed

Since serial numbers are typically placed using small font sizes, it may occur – after releasing the mouse button – that the placeholder text overflows the text area.  As a result, a warning is displayed in the designated message area. This warning can be safely ignored during serial number creation, as it will automatically disappear in the next step.

  1. After releasing the mouse button, the placeholder text Sample Content is generated in a predefined font size and style and displayed to the user.
  2. Next, open the tab Content [3] and, select the Serial Number [4] under the option Data Source.

Figure 2: The Print Item after defining the text position using the VDP Text Tool and selecting the Data Source "Serial Number"

  1. By selecting Serial Number as the Data Source, five input fields become available, each serving the following purpose:
    • Start [5] – defines the initial value of the serial number.
    • Start again after [6] – if a value greater than the start value is entered, the numbering of the serial number will restart from the start value once the specified number is reached.
      Example:
      • Start=100 | Start again after = 105 | Width = 7
      • Outcome: 0000100, 0000101, 0000102, 0000103, 0000104, 0000105, 0000100, 0000101, 0000102, 0000103, 0000104, 0000105, 0000100, 0000101, …
    • Increment [7] – defines the increment used to generate the next number.
      Example:
      • Start = 100 | Increment = 105 | Width = 7
      • Outcome: 0000100, 0000105, 0000110, 0000115, 0000120, …
    • Repeats [8] – specifies how many times the same Serial Number is repeated before switching to the next one.
      Example:
      • Start = 100 | Increment = 105 | Repeats = 3 | Width = 7
      • Outcome: 0000100, 0000100, 0000100, 0000105, 0000105, 0000105, 0000105, 0000110, 0000110, 0000110, 0000110, …
    • Width [9] – sets the total number of digits in the serial number. Leading zeros will be added if necessary. (See also the warning message below the figure.)
  2. To apply the given task, enter the value 100 in the Start [5] input field and the number 7 in the Width [9] input field. Leave all other input fields with their default settings. To verify your input, check the Preview [10] area. It shows which Serial Numbers will be generated for the current and the next data records.

Figure 3: The Print Item with the defined parameters for the Serial Number

Generate leading zeros

If you want to generate Serial Numbers with leading zeros, you must define the desired total number of digits by entering the corresponding value in the Width field. Please note, that the Start input field in the VDP Editor does not accept leading zeros.

  1. After defining and verifying the serial number sequence, you can proceed to configure the graphical formatting. To do so, switch to the tab Format [11] and open the Text Settings [12] section.
  2. In order to center the serial number horizontally within the designated free space, select the entry Align centered in the option Horizontal Alignment [13]. The functions of the other parameters in this Settings Area are described later in the Article Create Serial Number on Arc/Path. For this particular example, the other two options are not relevant.
  3. In order to format the text for the use case described here, open the section Font Settings [14]. In Font Family [15] select Calibri and Bold [17], and set the Font Size [18] to 11 pt. This section also offers the following additional formatting options:
    • Font Collection [16] – allows users to upload custom fonts, which will then be available for selection under Font Family. The procedure is explained in the article Creating and editing variable objects.
    • Horizontal Scale / Vertical Scale [19] – stretches or compresses the entire Serial Number horizontally or vertically. Typographers might frown upon this option!
    • Glyph Spacing [20] – adjusts the spacing between all characters. Selective spacing (i.e., spacing adjustments for individual characters or parts of the text) is not supported.
    • Stroke Width [21] – applies a Stroke to the Serial Number of text if needed. Enter the desired Stroke Width. For more information on creating Strokes around text, see the section Create a Serial Number with a Stroke.
    • Dash / Gap [22] – used to create, for example, dashed Strokes around text. A more detailed description can be found in the section Create a Serial Number with a Stroke.

Figure 4: The Print Item with Formatted Serial Number

  1. As the last step of the procedure, we want to determine the color of the Serial Number. To do this, open the Color Settings area [23] and select the color picker [24] option. This allows you to select the desired color value simply by clicking on the color circle [29] and to transfer the color value as CMYK value [28]. The color can also be defined in other ways. The following options are available for defining a color (for a more detailed description, see the article Creating and editing variable objects):
    • Color Picker [24]- When this option is enabled, different colors can be assigned as follows:
      • CMYK colors [26] – Allows a color to be defined by entering a CMYK value [28].
      • Spot Colors [27] – Allows the desired Spot Color to be selected and used from the list of system-wide defined Spot Colors.
      • Color wheel [29] – The color circle represents the used color value. However, users can also double-click on the color wheel to select a color value and transfer the resulting CMYK color value to the CMYK input fields.
      • No color – By clicking on the X symbol the object is displayed without color (transparent). This only makes sense for texts or serial numbers, when at least one stroke is created for the text or serial number.
    • Data Source [25] – When this option is activated, the color value can be taken from a CSV file or generated by creating dynamic color values using serial numbers.

Figure 5: The Print Item with colored Serial Number

  1. When the serial number is provided with a Stroke, the color value and the fill color can be determined in the Stroke Color Settings [30].
  2. Close the finished dialog by selecting the Save menu item.

3. Specific Features

In connection with Serial Numbers a few special features are available. The following description deals with these special features. All options that can be used for serial numbers are described here.

3.1. Generating a Random Serial Number

Especially for lot numbers or vouchers, the Serial Number in the output should not be serialized but printed well mixed. This function is available in the VDP Editor by activating the Randomly Distributed option [32] in the Content tab [31].

Figure 6: The Print Item with a randomly distributed Serial Number

3.2. Create Serial Number on Arc/Path

In order to create a serial number on a path or circular or elliptical arc proceed as follows.

  1. Create a path along the desired elliptical arc using the VDP Text Bezier Curve Tool [34]. To do this, simply use the tool to create a start point, a vertex and the end point and finish the process with ESC.
  2. The placeholder text Sample Content is created on the inside of the arc in the default size and font.
  3. Adjust the path accordingly using the Direct Selection Tool [33] or by selecting Smoothing Type [35] for the selected curve point so that the text runs alongside the desired curve.

Figure 7: The Print Item with its placeholder text which is located along the inside of the path

  1. Switch to the Content tab and select the Serial Number entry in the Data Source option and enter the same values that were set in the previous example - Start 100, Increment 1, Width 7.
  2. Switch to the Format tab [36] and format the serial number with regard to Font Family, Font Size and Glyph Spacing in the Font Settings [39]. Note that Glyph Spacing is mostly mandatory for texts within an arc.  Adjust the Glyph Spacing to match the design.
  3. Switch to the Color Settings area, set the text as white text with the CMYK values 0/0/0/0.
  4. Finally determine in the Text Settings area [37], where the text should be positioned on the path. In the illustration below, the text has been centered no offset was determined. If the text should be created inside the arc activate the Place Text Inside [38] option.

Figure 8: The Print Item with the centered Serial Number on the created text path

3.3. Create a Serial Number with a Stroke

In order to create a serial number consisting of an outlined, dashed text, proceed as follows.

  1. Create a Serial Number at the desired position, in the desired size and font using the desired Text Tool. You are already acquainted with this functionality.
  2. In order to create the stroke for the serial number, experiment with the following options:
    • Line Width [40] - depending on the font size, adjust the line width. Note that half of the line width grows outwards and the other half grows inwards. When the line width is too strong, this can cause very unfavorable visual effects.
    • Stroke/Gap [42] - determine the length of the white drawing outline and the length of the non-drawing outline. By entering the same value for stroke and for the gap, a regular dashed line will be created. If you want to make the pattern more variable, add another definition for stroke and gap by clicking on the "+" symbol [41].
    • Stroke Color Settings [43] - in order to draw a white stroke, define the stroke color in this settings area by entering a color definition - in this example the CMYK values are set to 0/0/0/0.

Figure 9: The Print Item of a white dashed outlined Serial Number on a Text Path

3.4. Automatically Adjust Text Size for Serial Numbers

Numbers are monospaced in almost all fonts. This means that each number has the same tracking i.e. width of each letter. Thus, no matter what combination of numbers is produced when the serial numbers are generated, the sum of all numbers should always have the same text length.

However, there are also fonts that have tracking, depending on the number. For such fonts, it is advisable to adjust the text length automatically. In the figure below, a serial number has been created with a proportional font. Due to a change in the tracking length for the number 4, the serial number of this font will overflow into the text.

Figure 10: Left: The serial number for the digits 399; Right: The serial number for the digits 40

To prevent the overflow from happening in the output, two entries are available in the Fit Size [45] option in the Font Settings [44] area.

  • Prevent text overflow – when text overflows, the font size is automatically adjusted by reducing the font size. This ensures that no letters of a variable text are removed in the output.
  • Fill text box – the font size for the text is always automatically adjusted to the available path length. Note that this means that changing the font size does not visually change the text or serial number.

Figure 11: The settings area Font Settings with the activated Fit Size "Prevent text overflow"

Article update: Workflow version 1.19.0 – 01/2025

Previous Article 2.4 Prepare VDP Job
Next Article 2.6 Variable Images
Still Need Help? Contact Us