公開方法(Public Methods) | |
| __init__ (self, Optional[IPoint] start=None, Optional[str] data=None) | |
| 初始化 Pdf417Barcode 類的新實例。 | |
| str | __str__ (self) |
| 返回一個可以發送到打印機的字符串。 | |
| limit_range (self, value, minimum, maximum) | |
| 將值的範圍限制在指定的最小值和最大值之間。 | |
公開方法(Public Methods) 繼承自 LabelMaker.Interfaces.IBcdPdf417.APdf417 | |
| __init__ (self, IPoint start, str data) | |
| 初始化一個具有起始點和數據的PDF417條碼。 | |
公開方法(Public Methods) 繼承自 LabelMaker.Interfaces.IBarcode2D.ABarcode2D | |
| __init__ (self, Optional[IPoint] start=None, str data="", Optional[IRuler] ruler=None, RotateEnum rotation=RotateEnum.NONE) | |
| str | __str__ (self) |
公開方法(Public Methods) 繼承自 LabelMaker.Interfaces.IBarcode2D.IBarcode2D | |
| str | __str__ (self) |
額外的繼承成員 | |
公開屬性 繼承自 LabelMaker.Interfaces.IBcdPdf417.APdf417 | |
| cell_size = None | |
| error_correction = Pdf417ErrCorrectionEnum.LEVEL2 | |
| int | rows = 0 |
| int | columns = 0 |
公開屬性 繼承自 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 | 最大允許值。 |