Public 成员函数 | |
| __init__ (self, Optional[IPoint] start=None, Optional[str] data=None) | |
| 初始化 Pdf417Barcode 类的新实例。 | |
| str | __str__ (self) |
| 返回一个可以发送到打印机的字符串。 | |
| limit_range (self, value, minimum, maximum) | |
| 将值的范围限制在指定的最小值和最大值之间。 | |
Public 成员函数 继承自 LabelMaker.Interfaces.IBcdPdf417.APdf417 | |
| __init__ (self, IPoint start, str data) | |
| 初始化一个具有起始点和数据的PDF417条形码。 | |
Public 成员函数 继承自 LabelMaker.Interfaces.IBarcode2D.ABarcode2D | |
| __init__ (self, Optional[IPoint] start=None, str data="", Optional[IRuler] ruler=None, RotateEnum rotation=RotateEnum.NONE) | |
| str | __str__ (self) |
Public 成员函数 继承自 LabelMaker.Interfaces.IBarcode2D.IBarcode2D | |
| str | __str__ (self) |
额外继承的成员函数 | |
Public 属性 继承自 LabelMaker.Interfaces.IBcdPdf417.APdf417 | |
| cell_size = None | |
| error_correction = Pdf417ErrCorrectionEnum.LEVEL2 | |
| int | rows = 0 |
| int | columns = 0 |
Public 属性 继承自 LabelMaker.Interfaces.IBarcode2D.ABarcode2D | |
| start = start | |
| data = data | |
| ruler = ruler or Defaults.ruler() | |
| rotation = rotation | |
| 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 | 最大允许值。 |