Home
ezBarcode Component WinForm Prev Page Prev Page
ezBarcodeComponent Winform
Getting Started
Setup ezBarcodeComponent
Examples
Trial and Redistributables
FAQ
ezBarcodeComponent Symbologies
CodaBar
Code11
Code128
Code39
Code39Ext
Code93
Code93Ext
Ean13
Ean8
Industrial 2 of 5
Interleaved 2 of 5
Ucc/Ean 128
MSI
Postnet
Planet
Telepen
Upc A
Upc E
IntelligentMail
Sscc18
Scc14
Itf 14
PDF 417
Macro PDF 17
DataMatrix
QR Code
ezBarcodeComponent.Winform Reference
Barcode Class
Barcode Members
Barcode Constructor
Properties
AutoFitControlToBarcode Property
BackColor Property
BarHeight Property
BearerBarHorizontalWidth Property
BearerBarVerticalWidth Property
Caption Property
CaptionAlignment Property
CaptionColor Property
CaptionFont Property
CaptionPosition Property
CaptionSpace Property
CharacterGrouping Property
CheckCharacter Property
CheckCharacterInText Property
CODABARStartChar Property
CODABARStopChar Property
Code128Set Property
CodeData Property
DataMatrixBarSize Property
DataMatrixEncodingMode Property
DataMatrixPreferredFormat Property
Font Property
ForeColor Property
HumanReadableTextFontColor Property
HumanReadableTextPosition Property
IsHumanReadableTextOnTop Property
LeftMargin Property
MacroPdf417FileId Property
MacroPdf417SegmentCount Property
MacroPdf417SegmentIndex Property
NarrowToWideRatio Property
PDF417BarWidth Property
PDF417Columns Property
PDF417CompactionType Property
PDF417ErrorCorrectionLevel Property
PDF417Rows Property
PDF417Truncated Property
PDF417YtoXRatio Property
Picture Property
PostnetHeightShort Property
PostnetHeightTall Property
PostnetSpacing Property
QRCodeBarSize Property
QRCodeEncoding Property
QRCodeErrorCorrectionLevel Property
QRCodeVersion Property
Resolution Property
RotationAngle Property
ShowHumanReadableText Property
SupplementarySeparation Property
Symbology Property
TopMargin Property
UPCESystem Property
UseCaret Property
XDimension Property
Methods
Dispose Method
OnPaint Method
DrawOnGraphics Method
SaveImageAs Method
CaptionPosition Enumeration
Code128 Enumeration
DataMatrixEncodingModes Enumeration
DataMatrixPreferredFormats Enumeration
PDF417CompactionMode Enumeration
PDF417ErrorCorrection Enumeration
QRCodeEncoding Enumeration
QRCodeErrorCorrectionLevel Enumeration
QRCodeVersion Enumeration
RotationAngles Enumeration
Symbologies Enumeration
ezBarcodeComponent Help

MacroPDF 417 Specification



MacroPDF 417 has the same features as standard PDF 417. If the data is too large for a single PDF417, Macro PDF417 creates multiple set of PDF417.

Use Caret (^)
The UseCaret propeties is set to true by default which is only apply to Code128, UccEan128, Sscc18, Scc14, PDF417, MacroPDF417, QR Code, and DataMarix etc. where full ASCII is accepted as encoding. The 3 digits data following the caret will be treated as ASCII code, e.g. ^010 is \n; ^009 is a tab; ^065 is character 'A'.

MacroPDF 417 Properties
Besides the properties to general barcode, the following properties belongs to PDF 417 only:

PDF417BarWidth gets or sets the narrow bar size in inches for PDF 417. Default is 0.01 inch.
Pdf417CompactionType gets or sets the PDF 417 compaction type. Default is Binary encoding. Four type of modes available:
  • Binary: it is used to encode all 256 8-bit byte values.

  • Numeric: it is used to encode numeric data.

  • Text: it is used to encode all printable ASCII character data.

  • Auto: it switches between the other three encoding method for small size.
PDF417YtoXRatio gets or sets the height of PDF 417 cell in the size of narrow bar (X Dimension). Default is 3.0.
PDF417Rows gets or sets the number of rows in the PDF417 barcode. Default is 0 (auto).
PDF417Columns gets or sets the number of columns in the PDF417 barcode. Default is 0 (auto).
Pdf417ErrorCorrectionLevel gets or sets the level of error correction used to create the barcode. The level is from 0 to 8. Default is Level2.
PDF417BarWidth gets or sets the narrow bar width size in inches for PDF417. Default is 0.01.
Pdf417Truncated determines if the right side of PDF417 barcode is truncated (removed) version which removes the right-hand portion in order to save space. Default is false.
MacroPdf417FileId gets or sets the integer MacroPDF File ID of the barcode. Default is 0.
MacroPdf417SegmentCount gets or sets the number of Macro PDF417 symbols. Its value must be less than or equal to 99999. Default is 0.
MacroPdf417SegmentIndex gets or sets the Segment Index for a Macro PDF417 symbol. Its value should be 0 to 99998 and less than the Pdf417SegmentCount property. Default is 0.



MacroPDF 417 examples by using ezBarcodeComponent
[C#]

        using ezBarcodeComponent.Winform; 

        //create MacroPDF 417 segment 1 barcode class
        Barcode barcode1 = new Barcode(); 
                                                                        
        //Specify the CodeData to encode
        barcode1.CodeData = "Name: John Smith";
        //Set the Symbology to Codabar
        barcode1.Symbology = Symbologies.MacroPDF417;
        barcode1.UseCaret= true;
        barcode1.MacroPdf417SegmentCount = 2;
        barcode1.MacroPdf417FileId = 0;
        barcode1.MacroPdf417SegmentIndex = 0;


   //Save the image
        barcode1.SaveImageAs("MacroPDF417-1.gif", System.Drawing.Imaging.ImageFormat.Gif);
    
           //create MacroPDF 417 segment 2 barcode class
        Barcode barcode2 = new Barcode(); 
                                                                        
        //Specify the CodeData to encode
        barcode2.CodeData = "Phone: 303-425-6543";
        //Set the Symbology to MacroPDF417
        barcode2.Symbology = Symbologies.MacroPDF417;
        barcode2.UseCaret= true;
        barcode2.MacroPdf417SegmentCount = 2;
        barcode2.MacroPdf417FileId = 0;
        barcode2.MacroPdf417SegmentIndex = 1;


   //Save the image
        barcode2.SaveImageAs("MacroPDF417-2.gif", System.Drawing.Imaging.ImageFormat.Gif);
    


[Vb.net]
      'create MacroPDF 417 segment 1 barcode class
        Dim barcode1 As New Barcode
                                                                
        'Specify the CodeData to encode 
        barcode1.CodeData = "Name: John Smith"
        'Set the Symbology to MacroPDF417
 barcode1.Symbology = Symbologies.MacroPDF417
        barcode1.UseCaret= True
        barcode1.MacroPdf417SegmentCount = 2
        barcode1.MacroPdf417FileId = 0
        barcode1.MacroPdf417SegmentIndex = 0

   'Save the image  
        barcode1.SaveImageAs("MacroPDF417-1.gif", System.Drawing.Imaging.ImageFormat.Gif)
        
        'create MacroPDF 417 segment 2 barcode class
        Dim barcode2 As New Barcode
                                                                
        'Specify the CodeData to encode 
        barcode2.CodeData = "Phone: 303-425-6543"
        'Set the Symbology to Codabar
 barcode2.Symbology = Symbologies.MacroPDF417
        barcode2.UseCaret= True
        barcode2.MacroPdf417SegmentCount = 2
        barcode2.MacroPdf417FileId = 0
        barcode2.MacroPdf417SegmentIndex = 1

   'Save the image  
        barcode2.SaveImageAs("MacroPDF417-2.gif", System.Drawing.Imaging.ImageFormat.Gif)
        
        
        
                        
Example of MacroPDF 417 barcode images.
 
Image Description
CodeData = "Name: John Smith"
Segment Index = 0
Total Segment is 2
Two segments should have the same file id.
CodeData = "Phone: 303-425-6543"
Segment Index = 1
Total Segment is 2
Two segments should have the same file id.