- Home
- Products
- Integration
- Tutorial
- Barcode FAQ
- Purchase
- Company
VB.NET PDF-417 Generator Size Setting Tutorialsample source code to generate 2D PDF-417 images and adjust barcode size in VB.NET
PDF-417, also known as Portable Data File 417, PDF 417, PDF417 Truncated, is a stacked linear barcode symbol format used in a variety of applications. PDF-417 Symbology Structure
PDF-417 VB.NET Generator Size Setting Tutorial
After PDF-417 VB.NET Generator installation, get it ready in VB.NET by placing the following statement: Dim pdf417 As OnBarcode.Barcode. PDF417 XtoYRatio
Property XtoYRatio (Type: Float; Default: 0.3333333) is used in PDF-417 to set the module height of PDF-417 bars. The height of module is the product of X and XtoYRatio. pdf417. XtoYRatio = 0.5; ColumnCount & RowCount
pdf417.ColumnCount = 3 Truncated
Truncated PDF-417 may be used where space is limited for the symbol. Set Property Truncated (Type: bool; Default: False) to be true when truncated PDF-417 is need. pdf417.Truncated = True UOM
UOM is the controller of size setting unit. Pixel, Cm, and Inch are provided as its options. The default value of UOM is Pixel. For example, type the following statement to select Pixel as the unit of size setting measure: pdf417.UOM = OnBarcode.Barcode.UnitOfMeasure.PIXEL X
Property X (Type: Type: Float; Default: 1) is used for the module width setting. pdf417.X = 2 BarCodeHeight & BarCodeWidth
Property BarCodeHeight (Type: Float; Default: 0) and Property BarCodeWidth (Type: Float; Default: 0) to set the size of the whole image. pdf417.BarcodeHeight = 175 AutoResize
When the value of X, BarCodeWidth, and BarCodeHeight conflict with each other, Property AutoResize (Type: bool; Default: False) should be enabled to solve the problem and make the PDF-417 100% compatible with its symbology specification and ISO 15438. See PDF-417 Barcode Size in VB.NET to know more usage of AutoResize. pdf417.X = 2 TopMargin, BottomMargin, LeftMargin, & RightMargin
Using PDF-417 VB.NET Generator, a quiet zone with 10X width will be generated automatically at each side of the PDF-417. When wider quiet zone is needed, you can increase the value of properties LeftMargin (Type: Float; Default: 0) and RightMargin (Type: Float; Default: 0). You can also create margins using TopMargin (Type: Float; Default: 0) and BottomMargin (Type: Float; Default: 0). pdf417.TopMargin = 10 |