Barcodes Pdf417
This will create an instance of Pdf417 Barcode.
Syntax
pdfBarcode = Barcodes.Pdf417 ( ) |
Properties
Angle | float | Angle at which the barcode is placed along the positive X-axis. This can have +/- values in current angle unit. |
AutoExpand | bool | Gets or sets whether the barcode size will be automatically increased if the current size cannot accommodate all the characters.. |
CompactionMode | Pdf417CompactionMode | Gets or sets the compaction mode of the Pdf417 barcode. |
DotDuration | float | Gets or sets the dot duration in milliseconds (for dot hatch style) |
Elevation | float | The z coordinate of the barcodes starting position. |
ErrorCorrectionLevel | Pdf417ErrorCorrectionLevel | Gets or sets the error correction level of the Pdf417 barcode. Refer the Error Correction Level page for a list of enumerations. |
HatchStyle | HatchStyle | The hatch pattern used to fill the barcode. |
Height | float | The height of the Barcode. |
Invert | bool | If true, Inverts the barcode. |
LineSpace | float | Gets or sets the hatching line gap of the MicroQRCode. |
MarkingOrder | MarkingOrder | Gets or sets the order in which the hatch and the outline will be marked. |
NumberOfColumns | int | Gets or sets the number of columns of the Pdf417 Barcode. |
NumberOfRows | int | Gets or sets the number of rows of the Pdf417 Barcode. |
PrintRatio | float | Ratio between the widths of wide and narrow bars |
QuietZone | bool | Specifies whether the QuietZone of the barcode is enabled or not. |
Text | string | Gets or sets the text of the Pdf417 Barcode. |
Width | float | Gets or sets the width of the Pdf417 Barcode. |
X | float | Gets or sets the X coordinate of the Pdf417 Barcode. |
Y | float | Gets or sets the Y coordinate of the Pdf417 Barcode. |
Methods
SetHatchingDirection(HorizontalHatchDirection hatchDirection, HorizontalHatchLineScanDirection hatchLineScanDirection) | Sets the hatching Direction |
SetHatchingDirection(VerticalHatchDirection hatchDirection , VerticalHatchLineScanDirection hatchLineScanDirection) | Sets the hatching Direction |
Return Values
Returns an instance of Pdf417-code type Barcode. |
Copy
Example
------ This program will scan a Pdf417 barcode
--Set the units as Millimeters
SetUnits(Units.Millimeters)
-- Laser Parameter settings
Laser.JumpSpeed = 2000
Laser.MarkSpeed = 1000
--Delay settings
Laser.JumpDelay = 100
Laser.MarkDelay = 100
--Assign Pdf417 barcode to variable "var"
var = Barcodes.Pdf417()
--Barcode height is 14.4
var.Height = 14.4
--X coordinate is 0.5
var.X = 0.5
--y coordinate is 0.5
var.Y = 0.5
--Angle of the barcode is 30 degrees
var.Angle = 30
--Auto expand enabled
var.AutoExpand = true
--Apply horizontal line hatch pattern
var.HatchStyle = HatchStyle.Horizontal
--Sets the line space as 0.1 Millimeters
var.Linespace = 0.1
--Barcode includes "ScanMaster ScanScript" text as the string
var.Text = "ScanMaster ScanScript"
--Set the compaction mode as text
var.CompactionMode = Pdf417CompactionMode.TextMode
--Specify the columns of the barcode
var.NumberOfColumns = 8
--Specify the error correction level of the barcode
var.ErrorCorrectionLevel = Pdf417ErrorCorrectionLevel.Level1
--Specify the rows of the barcode
var.NumberOfRows = 6
--Specify the width of the barcode
var.Width = 3
--Scan Pdf417 barcode
Image.Barcode(var)