Aspose.Barcode for Python via Java Generation and Recognition API docs
Pdf417ExtendedParameters Class Reference

Stores a MacroPdf417 metadata information of recognized barcode. More...

Inherits _MwWrapper.

Public Member Functions

def __init__ (self, _java_class)
 
bool __eq__ (self, Pdf417ExtendedParameters other)
 Returns a value indicating whether this instance is equal to a specified Pdf417ExtendedParameters value. More...
 
int __hash__ (self)
 Returns the hash code for the current instance. More...
 
str __str__ (self)
 Returns a human-readable string representation of this Pdf417ExtendedParameters. More...
 
bool is_code128_emulation (self)
 
bool is_linked (self)
 
bool is_reader_initialization (self)
 
bool macro_pdf417_terminator (self)
 
Optional[str] macro_pdf_417_addressee (self)
 
Optional[int] macro_pdf_417_checksum (self)
 
Optional[str] macro_pdf_417_file_id (self)
 
Optional[str] macro_pdf_417_file_name (self)
 
Optional[int] macro_pdf_417_file_size (self)
 
int macro_pdf_417_segment_id (self)
 
int macro_pdf_417_segments_count (self)
 
Optional[str] macro_pdf_417_sender (self)
 
Optional[datetime] macro_pdf_417_time_stamp (self)
 

Detailed Description

Stores a MacroPdf417 metadata information of recognized barcode.

This sample shows how to get Macro Pdf417 metadata

generator = BarcodeGenerator(EncodeTypes.MACRO_PDF_417, "12345")
generator.parameters.barcode.pdf417.macro_file_id = 10
generator.parameters.barcode.pdf417.macro_segments_count = 2
generator.parameters.barcode.pdf417.macro_segment_id = 1
generator.save(image_path_to_save, BarCodeImageFormat.PNG)
reader = BarCodeReader(image_path_to_save, DecodeType.MACRO_PDF_417)
for result in reader.read_barcodes():
print("BarCode Type:", result.code_type_name)
print("BarCode CodeText:", result.code_text)
print("Macro Pdf417 FileID:", result.extended.pdf417.macro_file_id)
print("Macro Pdf417 Segments:", result.extended.pdf417.macro_segments_count)
print("Macro Pdf417 SegmentID:", result.extended.pdf417.macro_segment_id)

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  _java_class 
)

Member Function Documentation

◆ __eq__()

bool __eq__ (   self,
Pdf417ExtendedParameters  other 
)

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

Parameters
obj An object value to compare to this instance.
Returns
: True if obj has the same value as this instance, otherwise False.

◆ __hash__()

int __hash__ (   self)

Returns the hash code for the current instance.

Returns
A hash code for the current object.

◆ __str__()

str __str__ (   self)

Returns a human-readable string representation of this Pdf417ExtendedParameters.

Returns
: A string that represents this Pdf417ExtendedParameters.

◆ is_code128_emulation()

bool is_code128_emulation (   self)
MicroPdf417 encoded with Code 128 emulation codewords (908/909/910/911).

◆ is_linked()

bool is_linked (   self)
Linkage flag (linked to 1D barcode).

◆ is_reader_initialization()

bool is_reader_initialization (   self)
Reader initialization flag.

◆ macro_pdf417_terminator()

bool macro_pdf417_terminator (   self)
True if this segment is the last segment of a Macro PDF417 file.

◆ macro_pdf_417_addressee()

Optional[str] macro_pdf_417_addressee (   self)
Macro PDF417 addressee (optional).

◆ macro_pdf_417_checksum()

Optional[int] macro_pdf_417_checksum (   self)
Macro PDF417 checksum (optional).

◆ macro_pdf_417_file_id()

Optional[str] macro_pdf_417_file_id (   self)
Macro PDF417 file ID (optional).

◆ macro_pdf_417_file_name()

Optional[str] macro_pdf_417_file_name (   self)
Macro PDF417 file name (optional).

◆ macro_pdf_417_file_size()

Optional[int] macro_pdf_417_file_size (   self)
Macro PDF417 file size in bytes (optional).

◆ macro_pdf_417_segment_id()

int macro_pdf_417_segment_id (   self)
Macro PDF417 segment ID.

◆ macro_pdf_417_segments_count()

int macro_pdf_417_segments_count (   self)
Macro PDF417 segments count. Default: -1.

◆ macro_pdf_417_sender()

Optional[str] macro_pdf_417_sender (   self)
Macro PDF417 sender (optional).

◆ macro_pdf_417_time_stamp()

Optional[datetime] macro_pdf_417_time_stamp (   self)
Macro PDF417 timestamp (optional).