User Manual

Create Variable Barcodes or QR codes

Updated on

In this article, you will learn

  • how to create a static barcode/QR code without uploading a CSV file,
  • how to generate a variable barcode/QR code based on a CSV file, and
  • which formatting options are available when working with barcodes/QR codes.

1. Introduction

The creation of static and variable barcodes and QR codes is one of the fundamental applications in the production of machine-readable data carriers. In addition to traditional applications, variable codes are also used in certain regions as a design element for customized layouts.

The content to be encoded can either be generated in an external application and provided as a CSV file or created directly within the VDP Editor. In the VDP Editor, this is achieved by combining variable strings with sequential serial numbers, without the need for an external file.  

Typical use cases for barcodes and QR codes include:

  • Product Identification – applying article numbers to packaging for fast capture in kiosk and point-of-sale systems.
  • Lot Numbers – generating unique identifiers, for example for raffles or lotteries.
  • Badge Numbers – creating combined numbering schemes with sequential numbering and additional text.
  • Parcel Identification – providing information for automated capture and control of logistics processes.
  • Business Cards – storing structured data such as contact information on cards or ID documents.
  • Posters and Promotional Materials – encoding URLs for direct access to additional information.
  • ID Cards and Badges – creating access credentials, for example for events, trade fairs, or fitness facilities.

VDP Editor Overview

A detailed description of the VDP Editor, including the structure of CSV files as well as the creation of serial numbers and variable fills and strokes, can be found in the chapter VDP Editor.

Overview of all Barcodes and QR Codes

An overview of all available barcodes and QR codes can be found in the chapter Supported Barcodes and QR Codes. In addition to a list of all supported code types, this chapter also provides a description of their respective use cases.

2. Create Variable Barcode

For the sample description of creating and editing a QR code, a Code 128 barcode is generated based on values provided in a CSV file. The barcode is positioned on a colored background area within the Print Item, with the output rendered in the defined size and specified proportions.

All required attributes are taken into account, including the plain text (text display) and compliance with the necessary safety zones (quiet zones).

To implement this use case, the following steps are required:

  1. Open the desired Article or corresponding Print Item in the VDP Editor.
  2. Select the VDP Barcode Tool [1] or use the keyboard B.
  3. Drag the barcode placeholder from the upper-left corner to the lower-right corner of the central white area. The Position (X/Y) [3] as well as the Width and Height [4] can be adjusted at any time in the settings panel Transform. The red outline of the rectangle [2] indicates the placeholder as an element on the top VDP layer.

Figure 1: The VDP Editor while drawing the rectangle using the Barcode Tool

  1. After releasing the mouse button, a placeholder dummy for an invalid barcode is displayed within the placeholder frame [6].
  2. In addition, a warning message [5] is displayed to inform users that an invalid barcode is being shown – either because the content to be generated is missing or because an unsupported character was used in the CSV file or direct input.

Figure 2: The VDP Editor displaying the placeholder image of an invalid barcode

  1. To populate the placeholder with the required data, click the icon Upload CSV file [7] in the General Settings panel.
  2. The Add CSV file dialog will then open. Select the desired CSV file either via drag-and-drop or by using the drop zone.

Figure 3: The dialog Add CSV file

  1. Select the desired settings in the dialog and complete the process by clicking Save.
  2. Then switch to the tab Content [8] to define the values for the barcode.
  3. In the drop down menu Data Source [9], select the desired entry (e. g., Column Title). The following options will then be displayed:
    • Column Header [10] – select the Column Title from the CSV file that contains the desired values – in this example, NUMBER.  
    • Trim Entry [11] – optionally, the data entry can be adjusted. The following options are available:
      • From the beginning – a positive number removes the the specified number of characters from the beginning of the character string (e. g., 3 → 00_text string_01 becomes text string_01). A negative number reduces the character string to the specified number of characters from the end (e. g., 2 → 00_text string_01 becomes 01).
      • From Position – specifies how many characters of the character string – starting from the beginning – are used (e. g., 7 → 00_text string_01 becomes 00_text).
  4. The selected data from the CSV file is assigned to the barcode. The stored content is displayed in the section Preview [12].

Figure 4: The Content tab with the defined values from the CSV file

To edit or adjust the barcode, switch to the tab Format [13]. This section contains settings for the barcode type, font, color, and background. In this step, the embedded text should be displayed, the barcode color should be configurable, and the background should be a static color. The following steps are required:

  1. Switch to the tab Format [13] and open the settings section Barcode Settings [14].
  2. Select the desired Barcode Type [15]. In this example, Code 128 is used.
  3. Below the Type, you will find various sections that differ depending on the selected Type. Open the dropdown menu Text Options [16].
  4. Enable the option Show Text [17] to display the encoded content of the barcode. Then define the Placement [18] of the text – either below or above the barcode. In this example, the text is placed below the barcode.
  5. Finally, set the Distance [19] between the text and the barcode.

Figure 5: The tab Format with the settings panel Text Options expanded

  1. Opem the section Font Settings [20] within the same tab. Here, the Font Family, Font Style and Font Size can be adjusted. Define the desired settings according to your requirments.

Figure 6: The settings panel Font Settings with the defined values

  1. In the section Barcode Settings [14] (Figure 5), open the section Quiet Zone [21].
  2. Define the desired Quiet Zone for Top, Bottom, Left and Right [22].

Figure 7: The tab Format with the configured Quiet Zone settings

Finally, the barcode color and background color can be defined. Proceed as follows:

  1. Switch to the tab Format and open the section Color Settings [23] to define the barcode color.
  2. Select the option Color Picker [24]. This allows a color to be defined statically.
  3. Define the desired color either by entering CMYK color values [25], using the Color Picker, or by selecting a system-wide Spot Color [26]. In this example, the Spot Color Barcode is used.

Figure 8: The tab Format with the settings sections Color Settings and Background expanded

  1. The background color can be defined in the section Background [27] and applies to the entire barcode placeholder. Open the corresponding settings panel.
  2. Select the option Data Source [28] to enable a variable background.
  3. Set the Data Source to the entry Column Title [29] and, in the dropdown menu Column Header [30], select the column that contains the color values for the background.
  4. Finally, select the appropriate Color Space [31] in which the background colors are defined. The background is then colored according to the values provided in the CSV file.

3. Additional Options

In addition to the basic editing options described above, the VDP Editor provides a wide range of advanced functions that allow barcodes and QR codes to be precisely adapted to specific requirements. These include, among others, extended settings for rendering, data processing, formatting, and the integration of variable content.

These additional options enable flexible design while ensuring the technical accuracy and readability of the codes in the production process. The following section provides a description of all available barcode settings for the Code 128 barcode type in the VDP Editor.

3.1. Code specific Options

Depending on the selected barcode type, barcode specific options are available that allow configuration of the typical parameters for the respective barcode. For the barcode type Code 128, the Bar Width Reduction is available.

The following settings can be configured in this section:

  • Bar Width Reduction [32] – entering a positive value reduces the bar width by the specified amount. Negative values are not permitted. This reduction compensates for ink spread (dot gain) during the printing process, which can result in wider bars and narrower spaces. Depending on the printing method, different correction values may be required. As barcode sizes decrease, the demand for accuracy increases. The orientation relative to the print direction can also affect the result. This adjustment is particularly useful for laser and inkjet printers, for example in cases of excessive color saturation.
  • Swap Foreground with Background [33] – enable this option to swap the foreground and background of the barcode. This results in an inverted barcode.

Figure 9: The configuration options in the section Code specific Options

3.2. Text Options

Using the text options, the content encoded in the barcode or QR code can be displayed as plain text. In addition to configuring the placement – either above or below the code – the distance between the text and the code can also be defined.

The following options are available in this section:

  • Show Text [34] – enable this option to display the content of the barcode or QR code as a text string
  • Placement [35] – select where the text should be positioned from the dropdown menu. Available options are above (above the code) or below (below the code).
  • Distance [36] – define the spacing between the text and the code. Note: This distance applies to 1D barcodes only.

Figure 10: The configuration options in the section Text Options

3.3. Quiet Zone

Using the quiet zone settings, a Quiet Zone can be defined for the top, bottom, left, and right sides of the code, as well as the Length Unit to be used. The Quiet Zone is a non-printable area without any markings before and after, as well as above and below the barcode, and it supports reliable scanner readability. As a general rule, the Quiet Zone should be at least ten times the module width or at least 6.5 mm (¼ inch). The exact value depends on the barcode type used.

Figure 11: The configuration options in the section Quiet Zone

3.4. Check Methods

For each code type, a Check Method is available to verify the correctness of the content of the barcode or QR code. The most common Check Method is the Checksum. The Checksum is a digit located at the end of a code. It is used to verify whether the information encoded in the barcode has been entered correctly. The result of the decoding calculation is compared with the checksum value to ensure the accuracy of the encoded data.

Depending on the selected code type, different checksum calculation methods are available. You can select the desired option from the dropdown menu.

Figure 12: The settings options in the section Check Methods

3.5. Encoding

For Encoding codes, the application $PRODUCT_NAME_WORKFLOW uses a Codepage. A code page is a character encoding that defines a unique mapping between printable characters and control characters to numeric values. As a rule, each value corresponds to the binary representation of a single byte. All code pages supported by the application are available in the selection menu.

Figure 13: The settings options in the section Encoding

3.6. Bearer Bars

For certain code types, bearer bars are available. Bearer Bars are additional lines placed around specific 1D barcodes, particularly ITF (Interleaved 2 of 5). They help prevent partial scans, improve scanning reliability, and can stabilize the printed image. Bearer Bars are not used for 2D codes such as QR codes.

The following settings are available:

  • Position [37] – select where the Bearer Bars should be placed from the dropdown menu. Available options include Top, Bottom, Top & Bottom, None.
  • Width [38] – define the width of the Bearer Bars.

Figure 14: The settings options in the section Bearer Bars

3.7. Resolution

The resolution of barcodes determines the fineness of the displayed structures and directly affects readability. For reliable scanning, the resolution must be adjusted according to the barcode type, size, and printing method.

The following settings are available:

  • Module Width [39] – enter the desired module width. The module width (X-dimension) defines the size of the smallest element (bar or space) of a barcode and can be specified in millimeters, inches, or mils (1 mil = 1/1000 inch). It is commonly denoted by the letter X. The minimum module width depends on the symbology used. In most specifications, a module width of at least 0.19 mm is recommended.
  • Horizontal [40] – enter the desired horizontal resolution. Specifying the horizontal resolution enables optimization of the module width to ensure consistent rendering of bars and spaces, thereby improving barcode readability. For printing systems with a resolution above 300 dpi, module width optimization is generally not required.
  • Vertical [41] – enter the desired vertical resolution. Specifying the vertical resolution enables optimization of the module width to ensure consistent rendering of bars and spaces, thereby improving barcode readability. For printing systems with a resolution above 300 dpi, module width optimization is generally not required.

Figure 15: The settings options in the section Resolution

Article Update: $PRODUCT_NAME_WORKFLOW 2.0.0 – 04/2026

Previous Article Add and Edit Variable Images
Next Article Add and Apply Amazon Transparency Codes