表示 TSPL 的 PDF417 條碼的類。 更多...
公開方法(Public Methods) | |
| __init__ (self, Optional[IPoint] start=None, Optional[str] data=None) | |
| 初始化 Pdf417Barcode 類的新實例。 | |
| str | __str__ (self) |
| 返回一個可以發送到打印機的字符串。 | |
| limit_range (self, value, minimum, maximum) | |
| 將值的範圍限制在指定的最小值和最大值之間。 | |
額外的繼承成員 | |
靜態公開屬性 繼承自 LabelMaker.Interfaces.IBcdPdf417.APdf417 | |
| IPoint | start |
| str | data |
| ICellRect | cell_size |
| Pdf417ErrCorrectionEnum | error_correction |
| int | rows |
| int | columns |
靜態公開屬性 繼承自 LabelMaker.Interfaces.IBarcode2D.IBarcodeItem2D | |
| IPoint | start |
| str | data |
靜態公開屬性 繼承自 LabelMaker.Interfaces.IBarcode2D.IPositionRuler | |
| IRuler | ruler |
靜態公開屬性 繼承自 LabelMaker.Interfaces.ISettings.IRotation | |
| RotateEnum | rotation |
靜態公開屬性 繼承自 LabelMaker.Interfaces.IBarcode2D.IRectangleCell | |
| 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 |