Visual Basic (Declaration) | |
---|---|
Public Class BarcodeWritePdf |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class BarcodeWritePdf |
C++/CLI | |
---|---|
public ref class BarcodeWritePdf |
Visual Basic | Copy Code |
---|---|
Private Sub BarcodeWritePdfExample() |
C# | Copy Code |
---|---|
private void BarcodeWritePdfExample() |
A PDF417 barcode size is dependent on the following values:
- Number of Columns
- Number of Rows
- X Module Size
- Module Aspect Ratio
Width= ((Number of Columns * 17) + 73) * (X Module Size)
This includes the Quiet Zone, Indicators, Start and Stop patterns.
To calculate barcode Height use the following equation:
Height=(Number of Rows + 4) * (X Module Size) * (Module Aspect Ratio)
The 4 added to Number of Rows is to account for the Quiet Zone.
If the number of columns and rows are not specified the default behavior is to find the minimum number of columns that the data requires to fit in its rows.
The Quiet Zone for a barcode is a minimum required white space before the start of the barcode symbols. The purpose is to delineate non-barcode information from the barcode data to prevent a reader from picking up information that doesn’t pertain to the barcode. For a PDF417 the Quiet Zone is 2 Modules on each side.
AspectHeight and AspectWidth properties are needed in special case when the number of barcode codewords equal to 4 (i.e. small barcodes).
If there isn’t a valid row column combination available to fit the encoded data or if the number of the specified columns and rows cannot fit the data. The function will return "Function Not Successful".
For a table containing information useful when writing PDF417 barcode data see http://www.leadtools.com/SDK/Document/Document-Addon-Barcodepdf-chart.htm.
MicroPDF417 may only be printed in certain defined combinations of rows and columns. Possible values are (wColumns x wRows)and maximum capacity are displayed in the table below:
- 0 x 0 (Default)
- 1 x 11
- 1 x 14
- 1 x 17
- 1 x 20
- 1 x 24
- 1 x 28
- 2 x 8
- 2 x 11
- 2 x 14
- 2 x 17
- 2 x 20
- 2 x 23
- 2 x 26
- 3 x 6
- 3 x 8
- 3 x 10
- 3 x 12
- 3 x 15
- 3 x 20
- 3 x 26
- 3 x 32
- 3 x 38
- 3 x 44
- 4 x 4
- 4 x 6
- 4 x 8
- 4 x 10
- 4 x 12
- 4 x 15
- 4 x 20
- 4 x 26
- 4 x 32
- 4 x 38
- 4 x 44
System.Object
Leadtools.Barcode.BarcodeWritePdf
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family