Pdf417ExtendedParameters

Pdf417ExtendedParameters class

Stores a MacroPdf417 metadata information of recognized barcode

public class Pdf417ExtendedParameters : joint.BaseJavaClass

Constructors

NameDescription
Pdf417ExtendedParameters(object)Initializes a new instance of the Pdf417ExtendedParameters class.

Methods

NameDescription
equals(object)Returns a value indicating whether this instance is equal to a specified Pdf417ExtendedParameters value.
getMacroPdf417AddresseeMacro PDF417 addressee name (optional).
getMacroPdf417ChecksumMacro PDF417 checksum (optional).
getMacroPdf417FileIDGets the file ID of the barcode, only available with MacroPdf417.Value: The file ID for MacroPdf417.
getMacroPdf417FileNameMacro PDF417 file name (optional).
getMacroPdf417FileSizeMacro PDF417 file size (optional).
getMacroPdf417SegmentIDGets the segment ID of the barcode,only available with MacroPdf417.Value: The segment ID of the barcode.
getMacroPdf417SegmentsCountGets macro pdf417 barcode segments count. Default value is -1.Value: Segments count.
getMacroPdf417SenderMacro PDF417 sender name (optional).
getMacroPdf417Terminator
getMacroPdf417TimeStampMacro PDF417 time stamp (optional).
hashCodeReturns the hash code for this instance.
init
isCode128EmulationFlag that indicates that the MicroPdf417 barcode encoded with 908, 909, 910 or 911 Code 128 emulation codewords.
isLinked
isReaderInitializationUsed to instruct the reader to interpret the data contained within the symbol as programming for reader initialization.
toStringReturns a human-readable string representation of this Pdf417ExtendedParameters.

Examples

//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);
let results = reader.readBarCodes();
for(let i = 0; i < results.length; i++)
{
let result = results[i];
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());
}

See Also