new Pdf417ExtendedParameters()

Example

//This sample shows how to get Macro Pdf417 metadata
let generator = new BarcodeGenerator(EncodeTypes.MacroPdf417, "12345");
generator.getParameters().getBarcode().getPdf417().setPdf417MacroFileID(10);
generator.getParameters().getBarcode().getPdf417().setPdf417MacroSegmentsCount(2);
generator.getParameters().getBarcode().getPdf417().setPdf417MacroSegmentID(1);
generator.save("test.png");
let reader = new BarCodeReader("test.png", null,  DecodeType.MACRO_PDF_417);
reader.readBarCodes().forEach(function(result, i, results)
{
    console.log("BarCode Type: " + result.getCodeTypeName());
    console.log("BarCode CodeText: " + result.getCodeText());
    console.log("Macro Pdf417 FileID: " + result.getExtended().getPdf417().getMacroPdf417FileID());
    console.log("Macro Pdf417 Segments: " + result.getExtended().getPdf417().getMacroPdf417SegmentsCount());
    console.log("Macro Pdf417 SegmentID: " + result.getExtended().getPdf417().getMacroPdf417SegmentID());
});

Methods

equals(obj)

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

Parameter

Name Type Optional Description

obj

 

 

An System.Object value to compare to this instance.

Returns

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

getMacroPdf417Addressee()

Macro PDF417 addressee name (optional).

Returns

Addressee name.

getMacroPdf417Checksum()

Macro PDF417 checksum (optional).

Returns

Checksum.

getMacroPdf417FileID()

Gets the file ID of the barcode, only available with MacroPdf417.Value: The file ID for MacroPdf417

getMacroPdf417FileName()

Macro PDF417 file name (optional).

Returns

File name.

getMacroPdf417FileSize()

Macro PDF417 file size (optional).

Returns

File size.

getMacroPdf417SegmentID()

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

getMacroPdf417SegmentsCount()

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

getMacroPdf417Sender()

Macro PDF417 sender name (optional).

Returns

Sender name

getMacroPdf417Terminator()

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

Returns

Terminator.

getMacroPdf417TimeStamp()

Macro PDF417 time stamp (optional).

Returns

Time stamp.

hashCode()

Returns the hash code for this instance.

Returns

A 32-bit signed integer hash code.

isEmpty()

Tests whether all parameters has only default values Value: Returns {@code true} if all parameters has only default values; otherwise, {@code false}.

toString()

Returns a human-readable string representation of this Pdf417ExtendedParameters.

Returns

A string that represents this Pdf417ExtendedParameters.