表示 TSPL 的 PDF417 条码的类。 更多...
Public 成员函数 | |
__init__ (self, Optional[IPoint] start=None, Optional[str] data=None) | |
初始化 Pdf417Barcode 类的新实例。 | |
str | __str__ (self) |
返回一个可以发送到印表机的字符串。 | |
limit_range (self, value, minimum, maximum) | |
将值的范围限制在指定的最小值和最大值之间。 | |
Public 属性 | |
start | |
data | |
error_correction | |
columns | |
rows | |
rotation | |
![]() | |
start | |
data | |
cell_size | |
error_correction | |
rows | |
columns | |
![]() | |
start | |
data | |
ruler | |
rotation | |
额外继承的成员函数 | |
![]() | |
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 |
表示 TSPL 的 PDF417 条码的类。
该类继承自 APdf417,并提供了在 TSPL 中初始化和描述 PDF417 条码的功能。
LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode.__init__ | ( | self, | |
Optional[IPoint] | start = None, | ||
Optional[str] | data = None ) |
初始化 Pdf417Barcode 类的新实例。
start | 条形码的起始点。 |
data | 要编码在条形码中的数据。 |
str LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode.__str__ | ( | self | ) |
返回一个可以发送到印表机的字符串。
该方法生成 Pdf417Barcode 实例的字符串表示形式,已格式化并准备好发送到印表机。字符串包括所有在 TSPL 中打印所需的命令和数据。
LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode.limit_range | ( | self, | |
value, | |||
minimum, | |||
maximum ) |
将值的范围限制在指定的最小值和最大值之间。
该方法通过返回最小值(如果值低于最小值)、最大值(如果值高于最大值)或值本身(如果在范围内) 来确保提供的值保持在定义的范围内。
value | 要限制的值。 |
minimum | 最小允许值。 |
maximum | 最大允许值。 |
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 |