White Lines Appear in a 2D or Stacked Barcode Symbol

< Back
You are here:

White Lines Appear in a 2D or Stacked Barcode Symbol

When generating symbols with 2D fonts such as QR-CodeData MatrixPDF417, or DataBar Stacked Omni-Directional fonts, horizontal white lines may appear:
Lines appearing in a barcode image within Word white lines appear in a databar stacked barcode


Many applications, including Microsoft Word and OpenOffice Writer, add extra line spacing between each line of text, which creates white lines in 2D and stacked symbols.

To resolve this issue:

  1. For 2D barcodes, use only the “IDAutomation2D” font; do not use “IDAutomation2D S” or “IDAutomation2D XS” fonts because these can cause extra spacing in some applications including Oracle XMLP reports.
  2. Set the line spacing to “1” or “Single” without any additional spacing before or after. If white lines still appear, set the spacing to less than 1, such as 0.98 as shown in the Crystal and FileMaker examples below. A spacing greater than 1 creates white lines.
  3. Choose the option to remove space after each paragraph. The additional space can create the white lines.

Word Example:

Adjusting line spacing in Word 2010 or Adjusting line spacing in Word

OpenOffice Writer Example:

OpenOffice Writer line spacing adjustment

SAP Crystal Reports Example:

Adjusting the line spacing in Crystal Reports for 2D and Stacked barcodes

FileMaker Pro Example:

Adjusting the line spacing in FileMaker Pro for a 2D barcode

Microsoft Excel:

The line spacing property is not adjustable within Excel. A special 2D XLS Font for Excel is available to overcome the line spacing issue and it is compatible with many 2D fonts including QR-CodeData Matrix and PDF417.

When using DataBar, or if the 2D XLS Font for Excel is not an option, the following solutions are available:

  1. Native Barcode Generator for Excel which creates barcodes as images in cells.
  2. Microsoft Word to perform a mail-merge using the barcode column as the source.
  3. IDAutomation Barcode Label Software and connect to Excel as the data source.
  4. Stream barcode images into Excel; this is the most complex option and requires knowledge of VBA scripting.

PCL Fonts:

If this issue occurs with PCL fonts, reduce the VMI setting and refer to the pclinfo.html file in the appropriate font package for more information.