# 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:

## 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#.