UniPRT 软件开发工具包 v1.0.0.0-pyd (Python)
 
载入中...
搜索中...
未找到
LabelMakerSDK.LabelMakerSDK类 参考

Public 成员函数

 __init__ (self)
 
 CreateLabel (self, iPrintLanguageTyp, LabelName, dotsPerUnit, unit)
 建立标签。
 
 CreateTexts (self, x_start, y_start, fontsize_x, fontsize_y, data, scale, FontSizeUnit, FontStyle, Alignment, fontName, rotation)
 建立文字标签。
 
 CreateBarcode1D (self, start_x, start_y, content, scale, narrowBar, wideBar, Height, BcdTyp, PrintHumanReadable, rotation, PdfLocTop)
 在标签中创建一维条形码。
 
 CreateLines (self, start_x, start_y, end_x, end_y, lineThickness, scale)
 在标签中创建线条。
 
 CreateBoxs (self, start_x, start_y, end_x, end_y, lineThickness, scale)
 在标签中创建框。
 
 CreateMaxicodeBarcodes (self, iMaxicodeTyp, mode, postalCode, countryCode, serviceClass, remainingMsg, year, primaryMsg, start_x, start_y, scale, ZipperPattern, rotation)
 在标签中创建 Maxicode 条形码。
 
 CreatePdf417Bcodes (self, start_x, start_y, content, scale, xdim, ydim, ErrorCorrection, row, col, rotation)
 在标签中创建一维条形码。
 
 CreateAztecBarcodes (self, start_x, start_y, content, scale, xdim, CodeType, iFixedErrCorrection, iLayers, rotation)
 在标签中创建 aztec 条形码。
 
 CreateDataMatrixBarcodes (self, start_x, start_y, content, scale, xdim, Rotation, UseRectangle, MatrixMultiLine, CtrlChar1, CtrlChar2, row, col)
 在标签中创建 data matrix 条形码。
 
 CreateQRBarcodes (self, start_x, start_y, content, scale, xdim, Mask, dataManuallyEncoded, errEnum, modelEnum, rotation)
 在标签中创建 QR 条形码。
 
 ToHexString (self, input_str)
 
 CreateRfidEncode (self, a32BitField, a16BitField, a6CharAsciiString, MemBlock, iOffsetFromStart, _10BytesUserData, _4BytesHexUserData, PasswordEnum, Password)
 在标签中创建 RFID。
 
 LabelToString (self, str)
 使用 TSPL 或 PGL 创建标签。
 
 CloseLabel (self)
 释放资源。
 

Public 属性

 gpLabel
 
 gpTextType
 
 gpMexiCodeBarcodeType
 
 gpPdf417BarcodeType
 
 gpDataMatrixBarcodeType
 
 gpAztecBarcodeType
 
 gpQRBarcodeType
 
 gpRfidWriteType
 
 gpLineType
 
 gpBoxType
 
 gpBarcode1DType
 
 gpPrinterResolution
 
 gpRuler
 
 gpCellRect
 
 gpCellSquare
 
 ObjectsPtr
 
 ObjRulerPtr
 
 ObjStartPtr
 
 ObjEndPtr
 
 ObjCellSquarePtr
 
 ObjCellRectPtr
 
 ObjTextItemPtr
 
 giPrintLanguageTyp
 

构造及析构函数说明

◆ __init__()

LabelMakerSDK.LabelMakerSDK.__init__ ( self)

成员函数说明

◆ CloseLabel()

LabelMakerSDK.LabelMakerSDK.CloseLabel ( self)

释放资源。

返回
None
程序代码
CloseLabel();

◆ CreateAztecBarcodes()

LabelMakerSDK.LabelMakerSDK.CreateAztecBarcodes ( self,
start_x,
start_y,
content,
scale,
xdim,
CodeType,
iFixedErrCorrection,
iLayers,
rotation )

在标签中创建 aztec 条形码。

参数
[in]start_x: x 坐标的起始点
[in]start_y: Y 坐标的起始点
[in]content: 条形码内容
[in]scale: 设置比例 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]xdim: 設定 x 座標的單元格大小
[in]CodeType: 设置代码类型(例如 AztecCodeTypeEnum::Compact)
[in]iFixedErrCorrection: 设置固定错误更正(例如 AztecCodeTypeEnum::FixedErrCorrection)
[in]iLayers: 设置层数
[in]rotation: 设定旋转角度 (RotateEnum::None/RotateEnum::ClockWise/RotateEnum::CounterClockWise/RotateEnum::Inverted)
返回
None
程序代码
CreateAztecBarcodes(0.25, 2.25, "Mr. AirTraveler, seat A, flight 200", ScaleEnum.Inch, 0.025, AztecCodeTypeEnum.Compact, NON_USED, 4, RotateEnum.None)

◆ CreateBarcode1D()

LabelMakerSDK.LabelMakerSDK.CreateBarcode1D ( self,
start_x,
start_y,
content,
scale,
narrowBar,
wideBar,
Height,
BcdTyp,
PrintHumanReadable,
rotation,
PdfLocTop )

在标签中创建一维条形码。

参数
[in]start_x: x 坐标的起始点
[in]start_y: Y 坐标的起始点
[in]content: 条形码内容
[in]scale: 设置比例 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]narrowBar: 窄条宽度
[in]wideBar: 宽条宽度
[in]Height: 设定高度
[in]BcdTyp: 设置条形码类型(例如 BarcodeTypeEnum_1D::Code_128)
[in]PrintHumanReadable: 设置打印人眼可读的标志
[in]rotation: 设定旋转角度 (RotateEnum::None/RotateEnum::ClockWise/RotateEnum::CounterClockWise/RotateEnum::Inverted)
[in]PdfLocTop: 设置一个标志将人眼可读的数据打印在条形码的上方。(默认值为下方)
返回
None
程序代码
CreateBarcode1D(0.5, 1.0 + 1.5 + 1 / 4 + 1.2, "Code 128", ScaleEnum.Inch, 0.015, 0.015 * 4.1, 1.2, BarcodeTypeEnum_1D.Code_128,
True, RotateEnum.None, False)

◆ CreateBoxs()

LabelMakerSDK.LabelMakerSDK.CreateBoxs ( self,
start_x,
start_y,
end_x,
end_y,
lineThickness,
scale )

在标签中创建框。

参数
[in]start_x: x 坐标的起始点
[in]start_y: Y 坐标的起始点
[in]end_x: X 坐标的终点
[in]end_y: Y 坐标的终点
[in]lineThickness: 设置线条粗细
[in]scale: 设置比例 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
返回
None
程序代码
CreateBoxs(0.5, 1.25, 3.5, 2.25, 1/16, ScaleEnum.Inch)

◆ CreateDataMatrixBarcodes()

LabelMakerSDK.LabelMakerSDK.CreateDataMatrixBarcodes ( self,
start_x,
start_y,
content,
scale,
xdim,
Rotation,
UseRectangle,
MatrixMultiLine,
CtrlChar1,
CtrlChar2,
row,
col )

在标签中创建 data matrix 条形码。

参数
[in]start_x: x 坐标的起始点
[in]start_y: Y 坐标的起始点
[in]content: 条形码内容
[in]scale: 设置比例 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]xdim: 设定 x 坐标的单元格大小
[in]Rotation: 设定旋转角度 (RotateEnum::None/RotateEnum::ClockWise/RotateEnum::CounterClockWise/RotateEnum::Inverted)
[in]UseRectangle: 设置标志以使用矩形
[in]MatrixMultiLine: 设置多行字符串
[in]rotationCtrlChar1: 设置 CtrlChar1
[in]rotationCtrlChar2: 设置 CtrlChar1
[in]row: 设定行数以限制条形码的高度
[in]col: 设定列数以限制条形码的宽度
返回
None
程序代码
CreateDataMatrixBarcodes(2.25, 0.25, "Line 1 DataMatrix", ScaleEnum.Inch, NON_USED, RotateEnum.None, False, "Line 2 content/r/nLine 3 content", 0x0D, 0x0A, 0, 0)

◆ CreateLabel()

LabelMakerSDK.LabelMakerSDK.CreateLabel ( self,
iPrintLanguageTyp,
LabelName,
dotsPerUnit,
unit )

建立标签。

参数
[in]iPrintLanguageTyp: 设定 TSPL 或 PGL
[in]LabelName: 设定 TSPL 或 PGL
[in]dotsPerUnit: 设定 DPI (203/300/600)
[in]unit: 单位设定 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
返回
None
程序代码
CreateLabel(TSPL, "SimpleLabel", 300, ScaleEnum.Inch)

◆ CreateLines()

LabelMakerSDK.LabelMakerSDK.CreateLines ( self,
start_x,
start_y,
end_x,
end_y,
lineThickness,
scale )

在标签中创建线条。

参数
[in]start_x: x 坐标的起始点
[in]start_y: Y 坐标的起始点
[in]end_x: X 坐标的终点
[in]end_y: Y 坐标的终点
[in]lineThickness: 设置线条粗细
[in]scale: 设置比例 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
返回
None
程序代码
CreateLines(2.5, 1/16, 2.5, 1.0, 1/32, ScaleEnum.Inch)

◆ CreateMaxicodeBarcodes()

LabelMakerSDK.LabelMakerSDK.CreateMaxicodeBarcodes ( self,
iMaxicodeTyp,
mode,
postalCode,
countryCode,
serviceClass,
remainingMsg,
year,
primaryMsg,
start_x,
start_y,
scale,
ZipperPattern,
rotation )

在标签中创建 Maxicode 条形码。

参数
[in]iMaxicodeTyp: 选择 MaxiCode 类型(例如 _MaxicodeMsgStructured)
[in]mode: 设置 maxicode(例如 MaxicodeModeEnum::MODE_2
[in]postalCode: 设置邮递区编码字符串
[in]countryCode: 设置国家/地区代码字符串
[in]serviceClass: 设置服务类字符串
[in]remainingMsg: 设置剩余的讯息字符串
[in]year: 设置年份字符串
[in]primaryMsg: 设置主讯息字符串
[in]start_x: x 坐标的起始点
[in]start_y: Y 坐标的起始点
[in]scale: 设置比例 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]ZipperPattern: 是否为 zipper pattern 设置标志
[in]rotation: 设定旋转角度 (RotateEnum::None/RotateEnum::ClockWise/RotateEnum::CounterClockWise/RotateEnum::Inverted)
返回
None
程序代码
CreateMaxicodeBarcodes(_MaxicodeMsgStructured, MaxicodeModeEnum.MODE_2, "902557317", "800", "200", "Maxicode Carrier Standard", "", "", 0.5, 0.5, ScaleEnum.Inch, False, RotateEnum.None)

◆ CreatePdf417Bcodes()

LabelMakerSDK.LabelMakerSDK.CreatePdf417Bcodes ( self,
start_x,
start_y,
content,
scale,
xdim,
ydim,
ErrorCorrection,
row,
col,
rotation )

在标签中创建一维条形码。

参数
[in]start_x: x 坐标的起始点
[in]start_y: Y 坐标的起始点
[in]content: 条形码内容
[in]scale: 设置比例 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]xdim设定 x 坐标的单元格大小
[in]ydim: 设定 y 坐标的单元格大小 单元格大小可以视为 PDF417 条形码行中最窄条形元素的宽度和高度。 改变最小元素的尺寸会影响条形码的整体宽度和高度。
[in]ErrorCorrection: 设置错误更正级别(例如 Pdf417ErrCorrectionEnum::LEVEL_5)
[in]row: 设定行数以限制条形码的高度
[in]col: 设定列数以限制条形码的宽度
[in]rotation: 设定旋转角度 (RotateEnum::None/RotateEnum::ClockWise/RotateEnum::CounterClockWise/RotateEnum::Inverted)
返回
None
程序代码
CreatePdf417Bcodes(0.25, 2.0, someShortText, ScaleEnum.Inch, 0.015, 0.05, Pdf417ErrCorrectionEnum.LEVEL_5, NON_USED, NON_USED, RotateEnum.None)

◆ CreateQRBarcodes()

LabelMakerSDK.LabelMakerSDK.CreateQRBarcodes ( self,
start_x,
start_y,
content,
scale,
xdim,
Mask,
dataManuallyEncoded,
errEnum,
modelEnum,
rotation )

在标签中创建 QR 条形码。

参数
[in]start_x: x 坐标的起始点
[in]start_y: Y 坐标的起始点
[in]content: 条形码内容
[in]scale: 设置比例 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]xdim: 设定 x 坐标的单元格大小
[in]Mask: 设置屏蔽(例如 QRCodeMaskEnum::Mask_4)
[in]dataManuallyEncoded: 设置手动编码数据
[in]errEnu: 设置错误更正枚举(例如 QRCodeErrorCorrectionEnum::EC_15)
[in]modelEnum: 设置模型枚举(例如 QRCodeModelEnum::MODEL_1)
[in]rotation: 设定旋转角度 (RotateEnum::None/RotateEnum::ClockWise/RotateEnum::CounterClockWise/RotateEnum::Inverted)
返回
None
程序代码
CreateQRBarcodes(1.75, 3.75, "", ScaleEnum.Inch, 0.025, QRCodeMaskEnum.Mask_4, dataManuallyEncoded,
QRCodeErrorCorrectionEnum.NON_USED, QRCodeModelEnum.NON_USED, RotateEnum.None)

◆ CreateRfidEncode()

LabelMakerSDK.LabelMakerSDK.CreateRfidEncode ( self,
a32BitField,
a16BitField,
a6CharAsciiString,
MemBlock,
iOffsetFromStart,
_10BytesUserData,
_4BytesHexUserData,
PasswordEnum,
Password )

在标签中创建 RFID。

参数
[in]a32BitField: 设置 RFID 32 位字段
[in]a16BitField: 设置 RFID 16 位字段
[in]a6CharAsciiString: 设置 RFID 6 个字符的 ASCII 字符串
[in]MemBlock: 设置内存区块(例如 RfidMemBlockEnum::EPC)
[in]iOffsetFromStart: 设置从起始点的偏移量
[in]_10BytesUserData: 设置 RFID 10 字节字符串
[in]_4BytesHexUserData: 设置 RFID 4 字节字符串
[in]PasswordEnum: 设置密码枚举(例如 RfidPasswordTypeEnum::Lock)
[in]Password: 设置密码字符串
返回
None
程序代码
CreateRfidEncode(a32BitField, a16BitField, a6CharAsciiString, RfidMemBlockEnum.User, 2, "MyUserData", "0ABCDE0F", RfidPasswordTypeEnum.None, "")
函数调用图:

◆ CreateTexts()

LabelMakerSDK.LabelMakerSDK.CreateTexts ( self,
x_start,
y_start,
fontsize_x,
fontsize_y,
data,
scale,
FontSizeUnit,
FontStyle,
Alignment,
fontName,
rotation )

建立文字标签。

参数
[in]x_start: x 坐标的起始点
[in]y_start: Y 坐标的起始点
[in]fontsize_x: x 坐标的字体大小
[in]fontsize_y: Y 坐标的字体大小
[in]data: 文字内容
[in]scale: 设置比例 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]FontSizeUnit: 设定字体大小单位 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]FontStyle: 设定字体样式 (FontSizeUnitsEnum::Ruler/FontSizeUnitsEnum::Points/FontSizeUnitsEnum::Percent)
[in]Alignment: 设定文字对齐方式 (ScaleEnum::Dot/ScaleEnum::MM/ScaleEnum::Inch)
[in]fontName: 设定字体名称 (203/300/600)
[in]rotation: 设定旋转角度 (RotateEnum::None/RotateEnum::ClockWise/RotateEnum::CounterClockWise/RotateEnum::Inverted)
返回
None
程序代码
CreateTexts(2.0, 1.25 + 7 / 16, 3 / 16, 7 / 16, "MY MAGIC", ScaleEnum.Inch, FontSizeUnitsEnum.Ruler,
(FontStyleEnum)NON_USED, AlignEnum.Center, "93952.sf", RotateEnum.None)

◆ LabelToString()

LabelMakerSDK.LabelMakerSDK.LabelToString ( self,
str )

使用 TSPL 或 PGL 创建标签。

参数
[out]str: TSPL 或 PGL 字符串
返回
None
程序代码
LabelToString(LabelString);

◆ ToHexString()

LabelMakerSDK.LabelMakerSDK.ToHexString ( self,
input_str )
这是这个函数的调用关系图:

类成员变量说明

◆ giPrintLanguageTyp

LabelMakerSDK.LabelMakerSDK.giPrintLanguageTyp

◆ gpAztecBarcodeType

LabelMakerSDK.LabelMakerSDK.gpAztecBarcodeType

◆ gpBarcode1DType

LabelMakerSDK.LabelMakerSDK.gpBarcode1DType

◆ gpBoxType

LabelMakerSDK.LabelMakerSDK.gpBoxType

◆ gpCellRect

LabelMakerSDK.LabelMakerSDK.gpCellRect

◆ gpCellSquare

LabelMakerSDK.LabelMakerSDK.gpCellSquare

◆ gpDataMatrixBarcodeType

LabelMakerSDK.LabelMakerSDK.gpDataMatrixBarcodeType

◆ gpLabel

LabelMakerSDK.LabelMakerSDK.gpLabel

◆ gpLineType

LabelMakerSDK.LabelMakerSDK.gpLineType

◆ gpMexiCodeBarcodeType

LabelMakerSDK.LabelMakerSDK.gpMexiCodeBarcodeType

◆ gpPdf417BarcodeType

LabelMakerSDK.LabelMakerSDK.gpPdf417BarcodeType

◆ gpPrinterResolution

LabelMakerSDK.LabelMakerSDK.gpPrinterResolution

◆ gpQRBarcodeType

LabelMakerSDK.LabelMakerSDK.gpQRBarcodeType

◆ gpRfidWriteType

LabelMakerSDK.LabelMakerSDK.gpRfidWriteType

◆ gpRuler

LabelMakerSDK.LabelMakerSDK.gpRuler

◆ gpTextType

LabelMakerSDK.LabelMakerSDK.gpTextType

◆ ObjCellRectPtr

LabelMakerSDK.LabelMakerSDK.ObjCellRectPtr

◆ ObjCellSquarePtr

LabelMakerSDK.LabelMakerSDK.ObjCellSquarePtr

◆ ObjectsPtr

LabelMakerSDK.LabelMakerSDK.ObjectsPtr

◆ ObjEndPtr

LabelMakerSDK.LabelMakerSDK.ObjEndPtr

◆ ObjRulerPtr

LabelMakerSDK.LabelMakerSDK.ObjRulerPtr

◆ ObjStartPtr

LabelMakerSDK.LabelMakerSDK.ObjStartPtr

◆ ObjTextItemPtr

LabelMakerSDK.LabelMakerSDK.ObjTextItemPtr