Class Pdf417ExtendedParameters

Class Pdf417ExtendedParameters

Namespace: Aspose.BarCode.BarCodeRecognition
Assembly: Aspose.BarCode.dll (25.2.0)

Stores a MacroPdf417 metadata information of recognized barcode

public sealed class Pdf417ExtendedParameters : BaseExtendedParameters

Inheritance

objectBaseExtendedParametersPdf417ExtendedParameters

Inherited Members

BaseExtendedParameters.IsEmpty, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Examples

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;
    generator.Save(@"c:\test.png");
}
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
    generator.Save("c:\test.png")
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)
    Next
End Using

Properties

IsCode128Emulation

Flag that indicates that the MicroPdf417 barcode encoded with 908, 909, 910 or 911 Code 128 emulation codewords.

public bool IsCode128Emulation { get; }

Property Value

bool

IsLinked

Flag that indicates that the barcode must be linked to 1D barcode.

public bool IsLinked { get; }

Property Value

bool

IsReaderInitialization

Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization.

public bool IsReaderInitialization { get; }

Property Value

bool

MacroPdf417Addressee

Macro PDF417 addressee name (optional).

public string MacroPdf417Addressee { get; }

Property Value

string

MacroPdf417Checksum

Macro PDF417 checksum (optional).

public int MacroPdf417Checksum { get; }

Property Value

int

MacroPdf417FileID

Gets the file ID of the barcode, only available with MacroPdf417.

public string MacroPdf417FileID { get; }

Property Value

string

MacroPdf417FileName

Macro PDF417 file name (optional).

public string MacroPdf417FileName { get; }

Property Value

string

MacroPdf417FileSize

Macro PDF417 file size (optional).

public int MacroPdf417FileSize { get; }

Property Value

int

MacroPdf417SegmentID

Gets the segment ID of the barcode,only available with MacroPdf417.

public int MacroPdf417SegmentID { get; }

Property Value

int

MacroPdf417SegmentsCount

Gets macro pdf417 barcode segments count. Default value is -1.

public int MacroPdf417SegmentsCount { get; }

Property Value

int

MacroPdf417Sender

Macro PDF417 sender name (optional).

public string MacroPdf417Sender { get; }

Property Value

string

MacroPdf417Terminator

Indicates whether the segment is the last segment of a Macro PDF417 file.

public bool MacroPdf417Terminator { get; }

Property Value

bool

MacroPdf417TimeStamp

Macro PDF417 time stamp (optional).

public DateTime MacroPdf417TimeStamp { get; }

Property Value

DateTime

Methods

Equals(object)

Returns a value indicating whether this instance is equal to a specified Aspose.BarCode.BarCodeRecognition.Pdf417ExtendedParameters value.

public override bool Equals(object obj)

Parameters

obj object

An System.Object value to compare to this instance.

Returns

bool

true if obj has the same value as this instance; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer hash code.

ToString()

Returns a human-readable string representation of this Aspose.BarCode.BarCodeRecognition.Pdf417ExtendedParameters.

public override string ToString()

Returns

string

A string that represents this Aspose.BarCode.BarCodeRecognition.Pdf417ExtendedParameters.

Operators

operator ==(Pdf417ExtendedParameters, Pdf417ExtendedParameters)

Returns a value indicating whether the first Aspose.BarCode.BarCodeRecognition.Pdf417ExtendedParameters value is equal to the second.

public static bool operator ==(Pdf417ExtendedParameters first, Pdf417ExtendedParameters second)

Parameters

first Pdf417ExtendedParameters

A first compared value

second Pdf417ExtendedParameters

A second compared value

Returns

bool

true if first has the same value as second; otherwise, false.

operator !=(Pdf417ExtendedParameters, Pdf417ExtendedParameters)

Returns a value indicating if the first Aspose.BarCode.BarCodeRecognition.Pdf417ExtendedParameters value is different from the second.

public static bool operator !=(Pdf417ExtendedParameters first, Pdf417ExtendedParameters second)

Parameters

first Pdf417ExtendedParameters

A first compared value

second Pdf417ExtendedParameters

A second compared value

Returns

bool

true if first has the different value from second; otherwise, false.

 English