UniPRT SDK v2.0.0.0
 
载入中...
搜索中...
未找到
LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode类 参考

表示 TSPL 的 PDF417 条码的类。 更多...

类 LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode 继承关系图:
LabelMaker.Interfaces.IBcdPdf417.APdf417 LabelMaker.Interfaces.IBarcode2D.ABarcode2D LabelMaker.Interfaces.IBarcode2D.IRectangleCell LabelMaker.Interfaces.IBarcode2D.IBarcode2D LabelMaker.Interfaces.IBarcode2D.IBarcodeItem2D LabelMaker.Interfaces.IBarcode2D.IPositionRuler LabelMaker.Interfaces.ISettings.IRotation

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
 

详细描述

表示 TSPL 的 PDF417 条码的类。

该类继承自 APdf417,并提供了在 TSPL 中初始化和描述 PDF417 条码的功能。

构造及析构函数说明

◆ __init__()

LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode.__init__ ( self,
Optional[IPoint] start = None,
Optional[str] data = None )

初始化 Pdf417Barcode 类的新实例。

参数
start条形码的起始点。
data要编码在条形码中的数据。

成员函数说明

◆ __str__()

str LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode.__str__ ( self)

返回一个可以发送到打印机的字符串。

该方法生成 Pdf417Barcode 实例的字符串表示形式,已格式化并准备好发送到打印机。字符串包括所有在 TSPL 中打印所需的命令和数据。

返回
Pdf417Barcode 实例的字符串描述。

◆ limit_range()

LabelMaker.TSPL.Pdf417Barcode.Pdf417Barcode.limit_range ( self,
value,
minimum,
maximum )

将值的范围限制在指定的最小值和最大值之间。

该方法通过返回最小值(如果值低于最小值)、最大值(如果值高于最大值)或值本身(如果在范围内) 来确保提供的值保持在定义的范围内。

参数
value要限制的值。
minimum最小允许值。
maximum最大允许值。
返回
返回限制在最小值和最大值范围内的值。

重载 LabelMaker.Interfaces.IBcdPdf417.APdf417 .


该类的文档由以下文件生成: