PDF417 Size Setting Instruction

Generating and Customizing PDF417 Barcodes

With our PDF417 generating and scanning controls, users can set the image size during barcode generation. The following barcode controls are efficient to use.



How to generate, print barcode using .NET, Java sdk library control with example project source code free download:

Barcode Generation Library for PDF-417

Barcode Scanning Controls DF-417

Barcode Generation and Recognization Software for PDF-417


PDF417 Structure

  • W : the width of PDF-417
  • Q : the width of the quiet zone; Qmin=2X
  • R : umber of rows in the symbol (3<=R<=90)
  • C : number of columns in the symbol in the data region (excluding start, stop and row indicator codewords) (1<=C<=30)
  • X : the width of a module bar; Xmin=1 pixel
  • Y : module height (also called row height) (Ymin=3X)
  • H : height of symbol



PDF417 Barcode Width

The width W of a PDF417 symbol, including quiet zones, is determined by you module width and number of columns.
It can be calculated from the following expression:


W = 2Q + 17X*4 + X + 17CX


Then the minimum value of W can be calculated as below:


Q min = 2X.
W min = 72 X + 17 CX
If, X min = 1, W min = 17C + 73

Eg. PDF417 data = " PDF417 ", X=1, left margin=2, right margin=2, C = 5, and other settings in default.
W min = 73 + 17*5 = 158 pixel



PDF417 Barcode Height

The height of a PDF417 symbol, including quiet zones, is determined by module height and number of rows.
It can be calculated from the following expression:


H = 2Q + RY        (Y >= 3X, Q >= 2X)


Then the minimum value of H, including horizontal quiet zones, can be calculated as below:


Q min = 2X, Y = 3 X
H min = 2*2X + R*3X
= 4X + 3RX
If, X min = 1, W min = 4 + 3R

Eg. PDF417 data ="PDF417", X = 1 , top margin = 2, bottom margin = 2, and other settings in default (R = 3).
H = 4 + 3*3 = 13 pixel


OnBarcode provides details of PDF417 Barcode Size Setting in C#.





OnBarcode is a market-leading provider of barcode generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides high quality tutorials and guides for various linear, 2d barcode information, such as C# Barcode, QR Code C#, QR Code VB.NET, QR Code ASP.NET, QR Code .NET, ASP.NET Barcode. OnBarcode barcode products are supported by RasterEdge ASP.NET Document Viewer, which supports ASP.NET PDF Viewer, ASP.NET MVC Document Viewer, ASP.NET PDF Editor, MVC PDF Viewer. And provide high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.