Pdf417ExtendedParameters class

Stores a MacroPdf417 metadata information of recognized barcode

public sealed class Pdf417ExtendedParameters : BaseExtendedParameters


Name Description
IsEmpty { get; } Tests whether all parameters has only default values
MacroPdf417Addressee { get; } Macro PDF417 addressee name (optional).
MacroPdf417Checksum { get; } Macro PDF417 checksum (optional).
MacroPdf417FileID { get; } Gets the file ID of the barcode, only available with MacroPdf417.
MacroPdf417FileName { get; } Macro PDF417 file name (optional).
MacroPdf417FileSize { get; } Macro PDF417 file size (optional).
MacroPdf417SegmentID { get; } Gets the segment ID of the barcode,only available with MacroPdf417.
MacroPdf417SegmentsCount { get; } Gets macro pdf417 barcode segments count. Default value is -1.
MacroPdf417Sender { get; } Macro PDF417 sender name (optional).
MacroPdf417TimeStamp { get; } Macro PDF417 time stamp (optional).


Name Description
override Equals(object) Returns a value indicating whether this instance is equal to a specified Pdf417ExtendedParameters value.
override GetHashCode() Returns the hash code for this instance.
override ToString() Returns a human-readable string representation of this Pdf417ExtendedParameters.
operator == Returns a value indicating whether the first Pdf417ExtendedParameters value is equal to the second.
operator != Returns a value indicating if the first Pdf417ExtendedParameters value is different from the second.


This sample shows how to get Macro Pdf417 metadata

using (BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.MacroPdf417, "12345"))
    generator.Parameters.Barcode.Pdf417.Pdf417MacroFileID = 10;
    generator.Parameters.Barcode.Pdf417.Pdf417MacroSegmentsCount = 2;
    generator.Parameters.Barcode.Pdf417.Pdf417MacroSegmentID = 1;
using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.MacroPdf417))
    foreach (BarCodeResult result in reader.ReadBarCodes())
        Console.WriteLine("BarCode Type: " + result.CodeTypeName);
        Console.WriteLine("BarCode CodeText: " + result.CodeText);
        Console.WriteLine("Macro Pdf417 FileID: " + result.Extended.Pdf417.MacroPdf417FileID);
        Console.WriteLine("Macro Pdf417 Segments: " + result.Extended.Pdf417.MacroPdf417SegmentsCount);
        Console.WriteLine("Macro Pdf417 SegmentID: " + result.Extended.Pdf417.MacroPdf417SegmentID);
Using generator As New BarcodeGenerator(EncodeTypes.MacroPdf417, "12345")
    generator.Parameters.Barcode.Pdf417.Pdf417MacroFileID = 10
    generator.Parameters.Barcode.Pdf417.Pdf417MacroSegmentsCount = 2
    generator.Parameters.Barcode.Pdf417.Pdf417MacroSegmentID = 1
End Using
Using reader As New BarCodeReader("c:\test.png", DecodeType.MacroPdf417)
    For Each result As BarCodeResult In reader.ReadBarCodes()
        Console.WriteLine("BarCode Type: " + result.CodeTypeName)
        Console.WriteLine("BarCode CodeText: " + result.CodeText)
        Console.WriteLine("Macro Pdf417 FileID: " + result.Extended.Pdf417.MacroPdf417FileID)
        Console.WriteLine("Macro Pdf417 Segments: " + result.Extended.Pdf417.MacroPdf417SegmentsCount)
        Console.WriteLine("Macro Pdf417 SegmentID: " + result.Extended.Pdf417.MacroPdf417SegmentID)
End Using

See Also