A class representing a PDF417 barcode for TSPL. More...
Public Member Functions | |
__init__ (self, Optional[IPoint] start=None, Optional[str] data=None) | |
Initializes a new instance of the Pdf417Barcode class. | |
str | __str__ (self) |
Returns a string that can be sent to the printer. | |
limit_range (self, value, minimum, maximum) | |
Limits the range of a value to a specified minimum and maximum. | |
Public Attributes | |
start | |
data | |
error_correction | |
columns | |
rows | |
rotation | |
![]() | |
start | |
data | |
cell_size | |
error_correction | |
rows | |
columns | |
![]() | |
start | |
data | |
ruler | |
rotation | |
Additional Inherited Members | |
![]() | |
IPoint | start |
str | data |
ICellRect | cell_size |
Pdf417ErrCorrectionEnum | error_correction |
int | rows |
int | columns |
![]() | |
IPoint | start |
str | data |
![]() | |
IRuler | ruler |
![]() | |
RotateEnum | rotation |
![]() | |
ICellRect | cell_size |
A class representing a PDF417 barcode for TSPL.
This class inherits from APdf417 and provides functionality for initializing and describing PDF417 barcodes in TSPL.
LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode.__init__ | ( | self, | |
Optional[IPoint] | start = None, | ||
Optional[str] | data = None ) |
Initializes a new instance of the Pdf417Barcode class.
start | The starting point of the barcode. |
data | The data to be encoded in the barcode. |
Reimplemented from LabelMaker.Interfaces.IBcdPdf417.APdf417.
str LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode.__str__ | ( | self | ) |
Returns a string that can be sent to the printer.
This method generates a string representation of the Pdf417Barcode instance that is formatted and ready to be sent to a printer. The string includes all the necessary commands and data required for printing in TSPL.
Reimplemented from LabelMaker.Interfaces.IBarcode2D.ABarcode2D.
LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode.limit_range | ( | self, | |
value, | |||
minimum, | |||
maximum ) |
Limits the range of a value to a specified minimum and maximum.
This method ensures that the provided value stays within the defined range by returning the minimum if the value is below it, the maximum if above it, or the value itself if it is within range.
value | The value to be limited. |
minimum | The minimum allowable value. |
maximum | The maximum allowable value. |
Reimplemented from LabelMaker.Interfaces.IBcdPdf417.APdf417.
LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode.columns |
LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode.data |
LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode.error_correction |
LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode.rotation |
LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode.rows |
LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode.start |