Class Pdf417ExtendedParameters
java.lang.Object
com.aspose.barcode.barcoderecognition.BaseExtendedParameters
com.aspose.barcode.barcoderecognition.Pdf417ExtendedParameters
Stores a MacroPdf417 metadata information of recognized barcode
This sample shows how to get Macro Pdf417 metadataBarcodeGenerator 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("c:\\test.png"); BarCodeReader reader = new BarCodeReader("c:\\test.png", DecodeType.MACRO_PDF_417); for(BarCodeResult result : reader.readBarCodes()) { System.out.println("BarCode Type: " + result.getCodeTypeName()); System.out.println("BarCode CodeText: " + result.getCodeText()); System.out.println("Macro Pdf417 FileID: " + result.getExtended().getPdf417().getMacroPdf417FileID()); System.out.println("Macro Pdf417 Segments: " + result.getExtended().getPdf417().getMacroPdf417SegmentsCount()); System.out.println("Macro Pdf417 SegmentID: " + result.getExtended().getPdf417().getMacroPdf417SegmentID()); }
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a value indicating whether this instance is equal to a specifiedPdf417ExtendedParametersvalue.Macro PDF417 addressee name (optional).intMacro PDF417 checksum (optional).Gets the file ID of the barcode, only available with MacroPdf417.Macro PDF417 file name (optional).intMacro PDF417 file size (optional).intGets the segment ID of the barcode,only available with MacroPdf417.intGets macro pdf417 barcode segments count.Macro PDF417 sender name (optional).booleanIndicates whether the segment is the last segment of a Macro PDF417 file.Macro PDF417 time stamp (optional).inthashCode()Returns the hash code for this instance.booleanFlag that indicates that the MicroPdf417 barcode encoded with 908, 909, 910 or 911 Code 128 emulation codewords.booleanisLinked()Flag that indicates that the barcode must be linked to 1D barcode.booleanUsed to instruct the reader to interpret the data contained within the symbol as programming for reader initialization.toString()Returns a human-readable string representation of thisPdf417ExtendedParameters.Methods inherited from class com.aspose.barcode.barcoderecognition.BaseExtendedParameters
isEmpty
-
Method Details
-
getMacroPdf417FileID
Gets the file ID of the barcode, only available with MacroPdf417.
Value: The file ID for MacroPdf417 -
getMacroPdf417SegmentID
public int getMacroPdf417SegmentID()Gets the segment ID of the barcode,only available with MacroPdf417.
Value: The segment ID of the barcode. -
getMacroPdf417SegmentsCount
public int getMacroPdf417SegmentsCount()Gets macro pdf417 barcode segments count. Default value is -1.
Value: Segments count. -
getMacroPdf417FileName
Macro PDF417 file name (optional).- Returns:
- File name.
-
getMacroPdf417FileSize
public int getMacroPdf417FileSize()Macro PDF417 file size (optional).- Returns:
- File size.
-
getMacroPdf417Sender
Macro PDF417 sender name (optional).- Returns:
- Sender name
-
getMacroPdf417Addressee
Macro PDF417 addressee name (optional).- Returns:
- Addressee name.
-
getMacroPdf417TimeStamp
Macro PDF417 time stamp (optional).- Returns:
- Time stamp.
-
getMacroPdf417Checksum
public int getMacroPdf417Checksum()Macro PDF417 checksum (optional).- Returns:
- Checksum.
-
getMacroPdf417Terminator
public boolean getMacroPdf417Terminator()Indicates whether the segment is the last segment of a Macro PDF417 file.- Returns:
- Terminator.
-
isReaderInitialization
public boolean isReaderInitialization()Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization.
Value: Reader initialization flag -
isLinked
public boolean isLinked()Flag that indicates that the barcode must be linked to 1D barcode.
Value: Linkage flag -
isCode128Emulation
public boolean isCode128Emulation()Flag that indicates that the MicroPdf417 barcode encoded with 908, 909, 910 or 911 Code 128 emulation codewords.- Returns:
- Code 128 emulation flag
-
equals
Returns a value indicating whether this instance is equal to a specified
Pdf417ExtendedParametersvalue. -
hashCode
public int hashCode()Returns the hash code for this instance.
-
toString
Returns a human-readable string representation of this
Pdf417ExtendedParameters.
-