User Manual

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 must be generated and printed on pre-designed templates – either sorted or randomly arranged – to ensure unique identification. The data source for the Serial Numbers can either be created in advance using an external application beforehand and provided as a CSV file, or it can be generated directly within the VDP Editor without the need to upload a CSV file. Serial Numbers are required for the following use cases:

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

2. Creating a Serial Number

You want to generate a sequential numbering on a sticker based on the following parameters:

  • Seven-digit numbering
  • The lowest number should start at 100, the highest number may be 9,999,999
  • Horizontally centered within the designated free area on the sticker
  • In Calibri Bold with an 8 pt font size
  • In a color tmatching the design

To implement this setup, proceed as follows:

  1. Open the desired Article or the intended Print Item in the VDP Editor.
  2. Select the VDP Text Tool [1].
  3. Create a horizontal line from the left to the right edge of the free area on the Print Item [2]. The line serves two purposes: it defines the start and end positions for placing the Serial Number, and it sets the baseline from which the Serial Number will be 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 positioning the text line with the Text Tool

Warning Message is Displayed

Since Serial Numbers are usually applied in font sizes, after releasing the mouse button it may happen that the placeholder text overflows the text area.  As a result, a warning is displayed in the designated message area. You can safely ignore this warning when creating the Serial Number, as it will resolve automatically in the next step.

  1. After releasing the mouse button, the placeholder text Sample Content will be created 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 Data Source, five input fields become available, each serving the following functions:
    • Start [5] – defines the starting value for the Serial Number.
    • Start again after [6] – by entering a value greater than the start value, the Serial Number will reset and begin numbering again from the start value.
      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 current Serial Number is repeated consecutively before moving to the next number.
      Example:
      • Start = 100 | Increment = 105 | Repeats = 3 | Width = 7
      • Outcome: 0000100, 0000100, 0000100, 0000105, 0000105, 0000105, 0000105, 0000110, 0000110, 0000110, 0000110, …
    • Width [9] – specifies the total number of digits in the Serial Number. Leading zeros will be added if necessary. (See also the warning message after the illustration.)
  2. To implement the task, enter the value 100 in the Start [5] input field and 7 in the Width [9] input field. Leave all other input fields at their default settings. To verify your entries, check the values in the Preview [10] area, which shows the Serial Numbers that would be generated for the next and subsequent data records.

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

Generating Leading Zeros

To generate leading zeros for Serial Numbers, specify 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 layout. To do this, switch to the tab Format [11] and open the section Text Settings [12].
  2. In order to horizontally center the Serial Number within the designated free space, select the entry Align Centered [13] in the option Horizontal Alignment. The functions of the other parameters in this Settings Area are explained later in the Article Create Serial Number on Arc/Path. For this particular example, the other 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 Automatically Adjust Text Size for Serial Numbers.
    • Horizontal Scale / Vertical Scale [19] – distorts the font horizontally or vertically for the entire Serial Number. Typographers might not approve of this option!
    • Glyph Spacing [20] – increases or descreases 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] – if you need to add a Stroke to the Serial Number or text for any reason, you can set the Stroke Width here. A more detailed explanation of creating Text Strokes can be found in the section Create a Serial Number with a Stroke.
    • Dash / Gap [22] – this option can be used, among other things, to create 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 the formatted Serial Number

  1. As the final step, the color of the Serial Number should be defined. To do this, open the are Fill Color Settings [23] and, for ease of use, select the option Color Picker [24]. This allows you to choose the desired color simply by clicking on the Color Picker [29], which will automatically transfer the selected CMYK value [28]. Alternatively, the color can be defined in other ways. The following options are available for color definition:
    • Color Picker [24]- When this option is enabled, different colors can be assigned as follows:
      • CMYK colors [26] – define a color by entering specific CMYK values [28].
      • Spot Colors [27] – select a predefined Spot Color from the list of system-wide available Spot Colors.
      • Color Picker [29] – displays the currently used color value. By clicking on the Color Picker, users can select a color, and the corresponding CMYK value is automatically populated in the CMYK input fields.
      • No color – clicking the X symbol displays the object without fill (transparent). This is only meaningful for text or Serial Numbers if at least a Stroke is applied.
    • Data Source [25] – When this option is enabled, the color value can be pulled from a CSV file or generated dynamically using Serial Numbers.

Figure 5: The Print Item with a colored Serial Number

  1. If the Serial Number should also be give a Stroke, the color value and the fill color of the Stroke can be defined in the Stroke Color Settings [30].
  2. Complete the creation process by selecting the option Save from the menu.

3. Special Features

There are several special features available when working with Serial Numbers. The following section outlines these features in detail, covering all options that can be used in conjunction with Serial Numbers.

3.1. Generating a Random Serial Number

For applications such as lot numbers or vouchers, the Serial Numbers should not be printed in a sequential order but rather in a well-randomized arrangement. This can be achieved in the VDP Editor by enabling the option Randomly Distributed [32] in the tab Content [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/elliptical arc, proceed as follows:

  1. Use the VDP Text Tools > Bézier Curve Text Tool [34] to create a path along the desired arc. To do this, simply define a starting point, a vertex and an endpoint with the tool, then press ESC to complete the process.
  2. A placeholder text Sample Content will be placed along the outer edge of the arc in the default font and size.
  3. Adjust the path using the Direct Selection Tool [33] or by applying Smoothing Type [35] to the selected curve point, so that the text follows the desired curve.

Figure 7: The Print Item with placeholder text positioned along the inner side of the path

  1. Switch to the tab Content and select the entry Serial Number as the Data Source. Enter the same values used in the previous example – Start 100, Increment 1, Width 7.
  2. Next, go to the tab Format [36] and format the Serial Number in the Font Settings [39], specifying Font Family, Font Size, Horizontal Scale, Glyph Spacing, Dash/Gap and Fit Font Size. Note that Glyph Spacing is typically essential for text along an arc. Adjust the Glyph Spacing as needed to match the design.
  3. Then, open the area Color Settings, where you can define the text color as white by entering the CMYK values 0/0/0/0.
  4. Finally, go to the area Text Settings [37] to define the text alignment on the path. In the example below, the text is center-aligned with no offset applied. If the text is positioned inside the circular arc, you must activate the option Place Text Inside [38].

Figure 8: The Print Item with a center-aligned Serial Number placed along the created Text Path

3.3. Create a Serial Number with a Stroke

In order to create a Serial Number consisting of a stroked, dashed text, proceed as follows:

  1. Use the desired Text Tool to place the Serial Number at the preferred position, in the desired size and font. You are already familiar with the functionality and how it works.
  2. In order to create the Stroke for the Serial Number, you´ll need to adjust the following settings:
    • Stroke Width [40] – depending on the font size, you may need to adjust the Stroke Width. Note that the Stroke expands equally inward and outward. Excessive thickness may result in visually unappealing effects.
    • Dash / Gap [42] – define the length of the visible (dashed) Stroke and the non-drawing (gap) Stroke. By entering the same value for the Stroke and the gap, will produce a regular dashed line. If you want to create a more varied pattern, click the « icon [41] to add another dash/gap definition.
    • Stroke Color Settings [43] – in order to render the Stroke in white, enter a color definition in this settings area. In this example, the CMYK values are set to 0/0/0/0.

Figure 9: The Print Item with a white dashed Stroked Serial Number on a Text Path

3.4. Automatically Adjust Text Size for Serial Numbers

In most fonts, Numbers have a uniform width. This means each digit occupies the same horizontal space – accounting for the character width plus any side bearings. As a result, the total text length of Serial Numbers remains consistent, regardless of the number combination.

However, some fonts use proportional spacing, where the width of each digit varies according to its visual design. For such fonts, it is advisable to enable automatic text fitting. In the example below, a Serial Number is generated  using a proportional font – where the width of each digit is visually adjusted. Due to the varying character width, not all numbers may fit within the predefined text path length.

Figure 10: Left: The Serial Number for the digits 399; Right: The Serial Number for the digits 40

To prevent text overflow during the output, two options are available under the option Fit Font Size [45] in the area Font Settings [44].

  • Prevent text overflow – if text exceeds the available space, the font size is automatically adjusted by reducing the font size. This ensures that no digits of the Serial Number are lost in the output.
  • Fill text box – the font size of the Serial Number is always automatically adjusted to fit the available path length. Note that this adjustment does not cause a visual change in the Text or Serial Number appearance.

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

Article update: Workflow version 1.19.2 – 05/2025

Previous Article Prepare VDP Job
Next Article Variable Images