You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2353 lines
62 KiB

3 years ago
/*!
* \~chinese
* @header PTCommandCPCL.h
* @abstract CPCL
*
* \~english
* @header PTCommandCPCL.h
* @abstract CPCL Command
*/
#import <Foundation/Foundation.h>
#import "PTBitmap.h"
/*!
* \~chinese
* 1
*
* \~english
* Paper type
*/
typedef NS_ENUM(NSUInteger, PTCPCLPaperType) {
PTCPCLPaperContinuoue = 0, ///< continuous paper
PTCPCLPaperLabel = 1, ///< label paper
PTCPCLPaperBackBlackMark = 2, ///< back black mark
PTCPCLPaperFrontBlackMark = 3, ///< front black mark
PTCPCLPaperBlackMarkInch3 = 4, ///< 3 inch black mark
PTCPCLPaperBlackMarkInch2 = 5 ///< 2 inch black mark
};
/*!
* \~chinese
* 2
*
* \~english
* Paper type
*/
typedef NS_ENUM(NSUInteger, PTCPCLNewPaperType) {
PTCPCLNewPaperContinuoue = 0, ///< continuous paper
PTCPCLNewPaperLabel = 2, ///< label paper
PTCPCLNewBlackMarkInch2 = 4, ///< 2 inch black mark
PTCPCLNewBlackMarkInch3 = 5, ///< 3 inch black mark
PTCPCLNewBlackMarkInch4 = 6 ///< 4 inch black mark
};
/*!
* \~chinese
*
*
* \~english
* Label resolution
*/
typedef NS_ENUM(NSUInteger, PTCPCLLabelResolution) {
PTCPCLLabelResolution100 = 100, ///< 100
PTCPCLLabelResolution200 = 200 ///< 200
};
/*!
* \~chinese
*
*
* \~english
* Barcode style
*/
typedef NS_ENUM(NSUInteger, PTCPCLBarcodeStyle) {
PTCPCLBarcodeStyleUPCA = 0,
PTCPCLBarcodeStyleUPCE = 1,
PTCPCLBarcodeStyleEAN13 = 2,
PTCPCLBarcodeStyleEAN8 = 3,
PTCPCLBarcodeStyleCode39 = 4,
PTCPCLBarcodeStyleCode93 = 5,
PTCPCLBarcodeStyleCode128 = 6,
PTCPCLBarcodeStyleCodeBAR = 7
};
/*!
* \~chinese
*
*
* \~english
* The ratio of wide to narrow bars
*/
typedef NS_ENUM(NSUInteger, PTCPCLBarcodeBarRatio) {
PTCPCLBarcodeBarRatio0 = 0,
PTCPCLBarcodeBarRatio1 = 1,
PTCPCLBarcodeBarRatio2 = 2,
PTCPCLBarcodeBarRatio3 = 3,
PTCPCLBarcodeBarRatio4 = 4,
PTCPCLBarcodeBarRatio20 = 20,
PTCPCLBarcodeBarRatio21 = 21,
PTCPCLBarcodeBarRatio22 = 22,
PTCPCLBarcodeBarRatio23 = 23,
PTCPCLBarcodeBarRatio24 = 24,
PTCPCLBarcodeBarRatio25 = 25,
PTCPCLBarcodeBarRatio26 = 26,
PTCPCLBarcodeBarRatio27 = 27,
PTCPCLBarcodeBarRatio28 = 28,
PTCPCLBarcodeBarRatio29 = 29,
PTCPCLBarcodeBarRatio30 = 30
};
/*!
* \~chinese
*
*
* \~english
* QRCode model number
*/
typedef NS_ENUM(NSUInteger, PTCPCLQRCodeModel) {
PTCPCLQRCodeModel1 = 1,
PTCPCLQRCodeModel2 = 2 ///< default
};
/*!
* \~chinese
*
*
* \~english
* Unit-width of the barcode in dots. 1-32,default: 6
*/
typedef NS_ENUM(NSUInteger, PTCPCLQRCodeUnitWidth) {
PTCPCLQRCodeUnitWidth_1 = 1,
PTCPCLQRCodeUnitWidth_2,
PTCPCLQRCodeUnitWidth_3,
PTCPCLQRCodeUnitWidth_4,
PTCPCLQRCodeUnitWidth_5,
PTCPCLQRCodeUnitWidth_6, ///< default
PTCPCLQRCodeUnitWidth_7,
PTCPCLQRCodeUnitWidth_8,
PTCPCLQRCodeUnitWidth_9,
PTCPCLQRCodeUnitWidth_10,
PTCPCLQRCodeUnitWidth_11,
PTCPCLQRCodeUnitWidth_12,
PTCPCLQRCodeUnitWidth_13,
PTCPCLQRCodeUnitWidth_14,
PTCPCLQRCodeUnitWidth_15,
PTCPCLQRCodeUnitWidth_16,
PTCPCLQRCodeUnitWidth_17,
PTCPCLQRCodeUnitWidth_18,
PTCPCLQRCodeUnitWidth_19,
PTCPCLQRCodeUnitWidth_20,
PTCPCLQRCodeUnitWidth_21,
PTCPCLQRCodeUnitWidth_22,
PTCPCLQRCodeUnitWidth_23,
PTCPCLQRCodeUnitWidth_24,
PTCPCLQRCodeUnitWidth_25,
PTCPCLQRCodeUnitWidth_26,
PTCPCLQRCodeUnitWidth_27,
PTCPCLQRCodeUnitWidth_28,
PTCPCLQRCodeUnitWidth_29,
PTCPCLQRCodeUnitWidth_30,
PTCPCLQRCodeUnitWidth_31,
PTCPCLQRCodeUnitWidth_32
};
/*!
* \~chinese
*
*
* \~english
* QRCode Error Correction Level
*/
typedef NS_ENUM(NSUInteger, PTCPCLQRCodeCorrectionLevel) {
PTCPCLQRCodeCorrectionLevelH = 0, ///< Ultra high reliability level
PTCPCLQRCodeCorrectionLevelQ = 1, ///< High reliability level
PTCPCLQRCodeCorrectionLevelM = 2, ///< Standard level
PTCPCLQRCodeCorrectionLevelL = 3 ///< High density level
};
/*!
* \~chinese
*
*
* \~english
* QRCode Character mode symbols
*/
typedef NS_ENUM(NSUInteger, PTCPCLQRCodeDataInputMode) {
PTCPCLQRCodeDataInputModeA = 0, ///< Automatic(default)
PTCPCLQRCodeDataInputModeM = 1 ///< manual(ignore it,pls select ModeA)
};
/*!
* \~chinese
*
*
* \~english
* Text Font Name
*/
typedef NS_ENUM(NSUInteger, PTCPCLTextFontName) {
PTCPCLTextFont0 = 0, ///< khmer:12x24
PTCPCLTextFont1 = 1, ///< chinese:24x24 english:9x17
PTCPCLTextFont2 = 2, ///< chinese:24x24 english:12x24
PTCPCLTextFont3 = 3, ///< chinese:20x20 english:10x20
PTCPCLTextFont4 = 4, ///< chinese:32x32 english:16x32
PTCPCLTextFont5 = 5, ///< chinese:24x24 english:12x24
PTCPCLTextFont7 = 7, ///< chinese:24x24 english:12x24
PTCPCLTextFont8 = 8, ///< chinese:24x24 english:12x24
PTCPCLTextFont20 = 20, ///< chinese:16x16 english:8x16
PTCPCLTextFont28 = 28, ///< chinese:28x28 english:14x28
PTCPCLTextFont55 = 55 ///< chinese:16x16 english:8x16
};
/*!
* \~chinese
*
*
* \~english
* Font scale
*/
typedef NS_ENUM(NSUInteger, PTCPCLTextFontSize) {
PTCPCLTextFontSize0 = 0, ///< scale-> width:1 height:1, default
PTCPCLTextFontSize1 = 1, ///< scale-> width:1 height:2
PTCPCLTextFontSize2 = 2, ///< scale-> width:2 height:1
PTCPCLTextFontSize3 = 3, ///< scale-> width:2 height:2
PTCPCLTextFontSize4 = 4, ///< scale-> width:2 height:3
PTCPCLTextFontSize5 = 5, ///< scale-> width:3 height:2
PTCPCLTextFontSize6 = 6, ///< scale-> width:3 height:3
PTCPCLTextFontSize7 = 7, ///< scale-> width:3 height:4
};
/// Scaled Font Name
typedef NS_ENUM(NSUInteger, PTCPCLScaledFontName) {
PTCPCLScaledFontNameTTF = 0, ///< default
PTCPCLScaledFontNameCSF = 1,
PTCPCLScaledFontNameFNT = 2
};
/// Font Group number
typedef NS_ENUM(NSUInteger, PTCPCLFontGroupNumber) {
PTCPCLFontGroupNumber0 = 0,
PTCPCLFontGroupNumber1 = 1,
PTCPCLFontGroupNumber2 = 2,
PTCPCLFontGroupNumber3 = 3,
PTCPCLFontGroupNumber4 = 4,
PTCPCLFontGroupNumber5 = 5,
PTCPCLFontGroupNumber6 = 6,
PTCPCLFontGroupNumber7 = 7,
PTCPCLFontGroupNumber8 = 8,
PTCPCLFontGroupNumber9 = 9,
PTCPCLFontGroupNumber10 = 10
};
/*!
* \~chinese
*
*
* \~english
* Text bold
*/
typedef NS_ENUM(NSUInteger, PTCPCLTextBold) {
PTCPCLTextBold0 = 0, ///< default,not bold
PTCPCLTextBold1 = 1,
PTCPCLTextBold2 = 2,
PTCPCLTextBold3 = 3,
PTCPCLTextBold4 = 4,
PTCPCLTextBold5 = 5
};
/*!
* \~chinese
*
*
* \~english
* Rotation:Counterclockwise rotation
*/
typedef NS_ENUM(NSUInteger, PTCPCLStyleRotation) {
PTCPCLStyleRotation0 = 0, ///< Counterclockwise rotation,default
PTCPCLStyleRotation90 = 90, ///< Counterclockwise rotation 90
PTCPCLStyleRotation180 = 180, ///< Counterclockwise rotation 180
PTCPCLStyleRotation270 = 270 ///< Counterclockwise rotation 270
};
/*!
* \~chinese
*
*
* \~english
* Font scale
*/
typedef NS_ENUM(NSUInteger, PTCPCLFontScale) {
PTCPCLFontScale_1 = 1,
PTCPCLFontScale_2,
PTCPCLFontScale_3,
PTCPCLFontScale_4,
PTCPCLFontScale_5,
PTCPCLFontScale_6,
PTCPCLFontScale_7,
PTCPCLFontScale_8,
PTCPCLFontScale_9,
PTCPCLFontScale_10,
PTCPCLFontScale_11,
PTCPCLFontScale_12,
PTCPCLFontScale_13,
PTCPCLFontScale_14,
PTCPCLFontScale_15,
PTCPCLFontScale_16
};
/// auto feed ling Font
typedef NS_ENUM(NSUInteger, PTCPCLTextLineFontStyle) {
PTCPCLTextLineFontStyle0 = 0, ///< big font
PTCPCLTextLineFontStyle1 = 1 ///< small font
};
/*!
* \~chinese
* PDF417
*
* \~english
* The error recovery level.
*/
typedef NS_ENUM(NSUInteger, PTCPCLPDF417ErrLevel) {
PTCPCLPDF417ErrLevel_0 = 0,
PTCPCLPDF417ErrLevel_1 = 1, //default
PTCPCLPDF417ErrLevel_2,
PTCPCLPDF417ErrLevel_3,
PTCPCLPDF417ErrLevel_4,
PTCPCLPDF417ErrLevel_5,
PTCPCLPDF417ErrLevel_6,
PTCPCLPDF417ErrLevel_7,
PTCPCLPDF417ErrLevel_8
};
/*!
* \~chinese
* PDF417
*
* \~english
* The PDF417 code horizontal or vertical.
*/
typedef NS_ENUM(NSUInteger, PTCPCLPDF417Direction) {
PTCPCLPDF417DirectionH = 0, ///< horizontal
PTCPCLPDF417DirectionV = 1 ///< vertical
};
/*!
* \~chinese
* PDF417
*
* \~english
* The compaction of data in the barcode is automatic, or explicitly set to binary.
*/
typedef NS_ENUM(NSUInteger, PTCPCLPDF417Binary) {
PTCPCLPDF417BinaryA = 0, ///< automatic
PTCPCLPDF417BinaryF = 1 ///< forced
};
@interface PTCommandCPCL : NSObject
/*!
* \~chinese
*
* .
*
* \~english
*
* Data sent to the printer.
*
*/
@property (nonatomic, strong) NSMutableData * _Nonnull cmdData;
/*!
* \~chinese
*
* NO
*
* \~english
*
* Whether ZTO invoke,default is NOThis parameter only applies to the firmware of ZTO
*
*/
@property (nonatomic, assign) BOOL isZTO;
/*!
* \~chinese
*
* 使GBK.
*
* \~english
*
* encodedefault is GBK.
*
*/
@property (nonatomic, assign) NSStringEncoding encoding;
/*!
* \~chinese
*
* .
*
* @brief .
* @param cmd .使encoding.
*
* \~english
*
* append command.
*
* @brief append command.
* @param cmd command text. encode with encoding property.
*
*/
- (void)appendCommand:(NSString * _Nonnull)cmd;
/*!
* \~chinese
*
* .
*
* @brief .
* @param cmd .
*
* \~english
*
* append command.
*
* @brief append command.
* @param cmd command data.
*
*/
- (void)appendCommandData:(NSData * _Nonnull)data;
/*!
* \~chinese
*
* .
*
* @brief .
*
* \~english
*
* selfTest.
*
* @brief selfTest.
*
*/
- (void)printSelfInspectionPage;
/*!
* \~chinese
*
* receiveDataBlock16.
*
* @brief
*
| () | 1 | 0 |
| --------- | ----------- |-----------|
| 0 | | |
| 1 | | |
| 2 | | |
| 3 | | |
*
* \~english
*
* Get print statusReceiveDataBlock callback hexadecimal data parsing.
*
* @brief Get Print Status
*
| Bit(return value) | 1 | 0 |
| ----------------- | ------------------- |--------------------- |
| 0 | Printer is Busy | Printer is Ready |
| 1 | Paper is Out | Paper is OK |
| 2 | Head Latch is Open | Head Latch is Closed |
| 3 | Battery is Low | Battery is OK |
*
*/
- (void)cpclGetPaperStatus;
/*!
* \~chinese
*
*
*
* @brief
*
* \~english
*
* firmware version.
*
* @brief firmware version.
*
*/
- (void)getFirmwareVersion;
/*!
* \~chinese
*
* printStateBlock.
*
* @brief .
*
* \~english
*
* Turn on/off print status callbackthe state of printer completion can be obtained by calling the printStateBlock interface.
*
* @brief Turn on/off print status callback.
*
*/
- (void)cpclTurnOnPrintStatusCallBack:(BOOL)flag;
/*!
* \~chinese
*
* 线.
*
* @brief 线.
*
* \~english
*
* Turn on underline.
*
* @brief Turn on underline.
*
*/
- (void)cpclUnderlineON;
/*!
* \~chinese
*
* 线.
*
* @brief 线.
*
* \~english
*
* Turn off underline.
*
* @brief Turn off underline.
*
*/
- (void)cpclUnderlineOFF;
/*!
* \~chinese
*
* .
*
* @brief .
* @param offset .
* @param hRes (/). 100 200
* @param vRes (/). 100 200
* @param height . 0-65535
* @param quantity . 0-1024
*
* \~english
*
* start label session.
*
* @brief start label session.
* @param offset The number of units to offset all fields from the left side of the label horizontally. 0-65535
* @param hRes The horizontal resolution of this label, expressed in dots per inch. 100 or 200
* @param vRes The vertical resolution of this label, expressed in dots per inch. 100 or 200
* @param height The height of the label in units. 0-65535
* @param quantity The number of copies of the label to print. 0-1024
*
*/
- (void)cpclLabelWithOffset:(NSInteger)offset
hRes:(PTCPCLLabelResolution)hRes
vRes:(PTCPCLLabelResolution)vRes
height:(NSInteger)height
quantity:(NSInteger)quantity;
/*!
* \~chinese
*
* ,.
*
* @brief .
* @param pageWidth ()
*
* \~english
*
* used to specify the width a label sessionSet the width you want to print.
*
* @brief used to specify the width a label session.
* @param pageWidth width of a label session in dots.
*
*/
- (void)cpclPageWidth:(NSInteger)pageWidth;
/*!
* \~chinese
*
* .
*
* @brief .
* @param type . UPCA/UPCE/EAN13/EAN8/39/93/128/CODABAR
* @param width .
* @param ratio . 0-420-30
* @param height .
* @param x .
* @param y .
* @param barcode .
*
* \~english
*
* horizonal barcode.
*
* @brief horizonal barcode.
* @param type The type of barcode to print. UPCA/UPCE/EAN13/EAN8/39/93/128/CODABAR
* @param width The width of a narrow bar.
* @param ratio The ratio of wide to narrow bars. 0-420-30
* @param height The height of the barcode.
* @param x The X position where the barcode begins
* @param y The Y position where the barcode begins
* @param barcode The data to be encoded into a barcode
*
*/
- (void)cpclBarcode:(PTCPCLBarcodeStyle)type
width:(NSInteger)width
ratio:(PTCPCLBarcodeBarRatio)ratio
height:(NSInteger)height
x:(NSInteger)x
y:(NSInteger)y
barcode:(NSString * _Nonnull)barcode;
/*!
* \~chinese
*
* .
*
* @brief .
* @param type .
* @param width .
* @param ratio . 0-420-30
* @param height .
* @param x .
* @param y .
* @param barcode .
*
* \~english
*
* vertical barcode.
*
* @brief vertical barcode.
* @param type The type of barcode to print.
* @param width The width of a narrow bar.
* @param ratio The ratio of wide to narrow bars. 0-420-30
* @param height The height of the barcode.
* @param x The X position where the barcode begins
* @param y The Y position where the barcode begins
* @param barcode The data to be encoded into a barcode
*
*/
- (void)cpclBarcodeVertical:(PTCPCLBarcodeStyle)type
width:(NSInteger)width
ratio:(PTCPCLBarcodeBarRatio)ratio
height:(NSInteger)height
x:(NSInteger)x
y:(NSInteger)y
barcode:(NSString * _Nonnull)barcode;
/*!
* \~chinese
*
* .
*
* @brief .
* @param font .
* @param fontSize , 0-999.
* @param offset 0-999.
*
* \~english
*
* used to specify if a human-readable text representation of barcode data should be printed below 1D barcodes.
*
* @brief Specify the barcode below the text format
* @param font A font name or number to create the representation
* @param fontSize The size of the font: 0-999
* @param offset How far in units the text is from the barcode:0-999
*
*/
- (void)cpclBarcodeTextWithFont:(PTCPCLTextFontName)font
fontSize:(NSInteger)fontSize
offset:(NSInteger)offset;
/*!
* \~chinese
*
* .
*
* @brief .
* @param font .
* @param xScale ().
* @param yScale ().
* @param offset 0-999.
*
* \~english
*
* used to specify if a human-readable text representation of barcode data should be printed below 1D barcodes.
*
* @brief Specify the barcode below the text format
* @param font The filename of the TTF font with extension.
* @param xScale The X size of the font, in dots: 0-999.
* @param yScale The Y size of the font, in dots: 0-999.
* @param offset How far in units the text is from the barcode:0-999.
*
*/
- (void)cpclBarcodeTextWithTrueTypeFont:(PTCPCLTextFontName)font
xScale:(NSInteger)xScale
yScale:(NSInteger)yScale
offset:(NSInteger)offset;
/*!
* \~chinese
*
* .
*
* @brief .
*
* \~english
*
* turn off the addition of the text representation.
*
* @brief turn off the addition of the text representation.
*/
- (void)cpclBarcodeTextOff;
/*!
* \~chinese
*
* QR
*
* @brief QR
* @param xPos .
* @param yPos .
* @param model , 1 2.
* @param unitWidth . 1-32,6
*
* \~english
*
* horizonal QR barcode.
*
* @brief horizonal QR barcode.
* @param xPos The X position where the barcode begins
* @param yPos The Y position where the barcode begins
* @param model Specifies the model of QR code to print.1 or 2
* @param unitWidth Unit-width of the barcode in dots. 1-32,default: 6.
*
*/
- (void)cpclBarcodeQRcodeWithXPos:(NSInteger)xPos
yPos:(NSInteger)yPos
model:(PTCPCLQRCodeModel)model
unitWidth:(PTCPCLQRCodeUnitWidth)unitWidth;
/*!
* \~chinese
*
* QR
*
* @brief QR
* @param xPos .
* @param yPos .
* @param model , 1 2.
* @param unitWidth . 1-32,6
*
* \~english
*
* vertical QR barcode.
*
* @brief vertical QR barcode.
* @param xPos The X position where the barcode begins
* @param yPos The Y position where the barcode begins
* @param model Specifies the model of QR code to print.1 or 2
* @param unitWidth Unit-width of the barcode in dots. 1-32,default: 6.
*
*/
- (void)cpclBarcodeVerticalQRcodeWithXPos:(NSInteger)xPos
yPos:(NSInteger)yPos
model:(PTCPCLQRCodeModel)model
unitWidth:(PTCPCLQRCodeUnitWidth)unitWidth;
/*!
* \~chinese
*
* QR.
*
* @brief QR.
* @param level
* @param characterMode
* @param context
*
* \~english
*
* QR Data.
*
* @brief QR Data.
* @param level Error Correction
* @param characterMode Data Input Mode
* @param context Data for barcode
*
*/
- (void)cpclBarcodeQRCodeCorrectionLecel:(PTCPCLQRCodeCorrectionLevel)level characterMode:(PTCPCLQRCodeDataInputMode)characterMode context:(NSString *_Nonnull)context;
/*!
* \~chinese
*
* QR.
*
* @brief QR.
*
* \~english
*
* The QR code terminator.
*
* @brief The QR code terminator.
*
*/
- (void)cpclBarcodeQRcodeEnd;
/*!
* \~chinese
*
* PDF417
*
* @brief PDF417
* @param directon
* @param xPos X (0 to 65535 units)
* @param yPos Y (0 to 65535 units)
* @param xDot X,2 (0 to 65535)
* @param yDot Y,6 (0 to 65535)
* @param columns 使 (1 to 30),3
* @param rows 使 (0 to 90),0
* @param ecc (0 to 8),1
* @param binaryModel (0 or 1),0
*
* \~english
*
* Config PDF417 parameters
*
* @brief Config PDF417 parameters
* @param directon horizontal or vertical
* @param xPos The X position where the barcode begins (0 to 65535 units)
* @param yPos The Y position where the barcode begins (0 to 65535 units)
* @param xDot The X size of a single element in dots,the default value is 2 (0 to 65535)
* @param yDot The Y size of a single element in dots,the default value is 6(0 to 65535)
* @param columns Specifies the number of columns to use,the default value is 3 (1 to 30)
* @param rows Specifies the number of rows to use,the default value is 0 (0 to 90)
* @param ecc Specifies the error recovery level,the default value is 1 (0 to 8)
* @param binaryModel Force binary compaction mode,the default value is 0 (0 or 1)
*/
- (void)cpclPDF417CodeWithDirection:(PTCPCLPDF417Direction)directon
xPos:(NSInteger)xPos
yPos:(NSInteger)yPos
xDot:(NSInteger)xDot
yDot:(NSInteger)yDot
columns:(NSInteger)columns
rows:(NSInteger)rows
ecc:(PTCPCLPDF417ErrLevel)ecc
binaryModel:(PTCPCLPDF417Binary)binaryModel;
/*!
* \~chinese
*
* PDF417.
*
* @brief PDF417.
* @param context
*
* \~english
*
* PDF417 Data.
*
* @brief PDF417 Data.
* @param context data
*
*/
- (void)cpclPDF417CodeAddContext:(NSString *_Nullable)context;
/*!
* \~chinese
*
* PDF417.
*
* @brief PDF417.
*
* \~english
*
* The PDF417 code terminator.
*
* @brief The PDF417 code terminator.
*
*/
- (void)cpclPDF417codeEnd;
/*!
* \~chinese
*
* .
*
* @brief .
* @param xPos (0~65535)
* @param yPos (0~65535)
* @param xEnd (0~65535)
* @param yEnd (0~65535)
* @param thickness 线.(0~65535)
*
* \~english
*
* draw box.
*
* @brief draw box.
* @param xPos The X origin of the box.(0~65535)
* @param yPos The Y origin of the box.(0~65535)
* @param xEnd The X coordinate where the box ends.(0~65535)
* @param yEnd The Y coordinate where the box ends.(0~65535)
* @param thickness The thickness of the lines in the box.(0~65535)
*
*/
- (void)cpclBoxWithXPos:(NSInteger)xPos
yPos:(NSInteger)yPos
xEnd:(NSInteger)xEnd
yEnd:(NSInteger)yEnd
thickness:(NSInteger)thickness;
/*!
* \~chinese
*
* 线.
*
* @brief 线.
* @param xPos x
* @param yPos y
* @param xEnd x
* @param yEnd y
* @param thickness 线
*
* \~english
*
* draw line.
*
* @brief draw line.
* @param xPos The X origin of the line.
* @param yPos The Y origin of the line.
* @param xEnd The X coordinate where the line ends.
* @param yEnd The Y coordinate where the line ends.
* @param thickness The thickness of the line.
*
*/
- (void)cpclLineWithXPos:(NSInteger)xPos
yPos:(NSInteger)yPos
xEnd:(NSInteger)xEnd
yEnd:(NSInteger)yEnd
thickness:(NSInteger)thickness;
/*!
* \~chinese
*
* 线.
*
* @brief 线.
* @param xPos (0~65535)
* @param yPos (0~65535)
* @param xEnd (0~65535)
* @param yEnd (0~65535)
* @param thickness 线.(0~65535)
*
* \~english
*
* draw inverse line.
*
* @brief draw inverse line.
* @param xPos The X origin of the box.(0~65535)
* @param yPos The Y origin of the box.(0~65535)
* @param xEnd The X coordinate where the box ends.(0~65535)
* @param yEnd The Y coordinate where the box ends.(0~65535)
* @param thickness The thickness of the lines in the box.(0~65535)
*
*/
- (void)cpclInverseLineWithXPos:(NSInteger)xPos
yPos:(NSInteger)yPos
xEnd:(NSInteger)xEnd
yEnd:(NSInteger)yEnd
thickness:(NSInteger)thickness;
/*!
* \~chinese
*
*
*
* @brief
* @param Xpos
* @param Ypos
* @param image
* @param bitmapMode
* @param compress
* @param isPackage
*
* \~english
*
* Print Image
*
* @brief Print Image
* @param Xpos Horizontal starting position.
* @param Ypos Vertical starting position.
* @param image Print image
* @param bitmapMode Bitmap type
* @param compress The type of compression supported by the printer
* @param isPackage Whether the pictures need to be subcontracted
*
*/
- (void)cpclPrintBitmapWithXPos:(NSInteger)xPos
yPos:(NSInteger)yPos
image:(CGImageRef _Nullable )image
bitmapMode:(PTBitmapMode)bitmapMode
compress:(PTBitmapCompressMode)compress
isPackage:(BOOL)isPackage;
/*!
* \~chinese
*
* .
*
* @brief .
* @param xPos
* @param yPos
*
* \~english
*
* concatenate multiple fonts and sizes of text on to a single line, and to align their top-lines in a specific way.
*
* @brief Horizontal text series
* @param xPos The X origin of the text string.
* @param yPos The Y origin of the text string.
*
*/
- (void)cpclConcatStartWithXPos:(NSInteger)xPos yPos:(NSInteger)yPos;
/*!
* \~chinese
*
* .
*
* @brief .
* @param xPos
* @param yPos
*
* \~english
*
* concatenate multiple fonts and sizes of text on to a single line, and to align their top-lines in a specific way.
*
* @brief Vertical text series.
* @param xPos The X origin of the text string.
* @param yPos The Y origin of the text string.
*
*/
- (void)cpclConcatVerticalStartWithXPos:(NSInteger)xPos yPos:(NSInteger)yPos;
/*!
* \~chinese
*
* .
*
* @brief .
* @param font .
* @param fontSize .
* @param offset (Y).
* @param text .
*
* \~english
*
* concat text.
*
* @brief concat text.
* @param font font.
* @param fontSize font size.
* @param offset How far from Y is the top of this text.
* @param text The text data to be concatenated.
*
*/
- (void)cpclConcatTextWithFont:(PTCPCLTextFontName)font
fontSize:(NSInteger)fontSize
offset:(NSInteger)offset
text:(NSString * _Nonnull)text;
/*!
* \~chinese
*
* .
*
* @brief .
* @param scaledFont .
* @param xScale ().
* @param yScale ()
* @param offset (Y).
* @param text .
*
* \~english
*
* concat scaled text.
*
* @brief concat scaled text.
* @param scaledFont A scaled font used to create the text.
* @param xScale The X size of the scaled font, in points.
* @param yScale The Y size of the scaled font, in points.
* @param offset offset How far from Y is the top of this text.
* @param text The text data to be concatenated.
*
*/
- (void)cpclConcatScaleTextWithScaledFont:(NSInteger)scaledFont
xScale:(NSInteger)xScale
yScale:(NSInteger)yScale
offset:(NSInteger)offset
text:(NSString * _Nonnull)text;
/*!
* \~chinese
*
* .
*
* @brief .
* @param scaledFont .
* @param xScale ().
* @param yScale ()
* @param offset (Y).
* @param text .
*
* \~english
*
* concat scaled Vertical text.
*
* @brief concat scaled Vertical text.
* @param scaledFont A scaled font used to create the text.
* @param xScale The X size of the scaled font, in points.
* @param yScale The Y size of the scaled font, in points.
* @param offset offset How far from Y is the top of this text.
* @param text The text data to be concatenated.
*
*/
- (void)cpclConcatVerticalScaleTextWithScaledFont:(NSInteger)scaledFont
xScale:(NSInteger)xScale
yScale:(NSInteger)yScale
offset:(NSInteger)offset
text:(NSString * _Nonnull)text;
/*!
* \~chinese
*
* .
*
* @brief .
* @param fontGroup (0-10)
* @param offset (Y).
* @param text .
*
* \~english
*
* concat font group.
*
* @brief concat font group.
* @param fontGroup Font group number.(0-10)
* @param offset offset How far from Y is the top of this text.
* @param text The text data to be concatenated.
*
*/
- (void)cpclConcatTextWithFontGroup:(PTCPCLFontGroupNumber)fontGroup
offset:(NSInteger)offset
text:(NSString * _Nonnull)text;
/*!
* \~chinese
*
* .
*
* @brief .
*
* \~english
*
* terminate concat command.
*
* @brief terminate concat command.
*
*/
- (void)cpclConcatEnd;
/*!
* \~chinese
*
* .
*
* @brief .
*
* \~english
*
* terminate a CPCL label session, and create the resulting print out.
*
* @brief The tag end of the session
*
*/
- (void)cpclPrint;
/*!
* \~chinese
*
* ,180.
*
* @brief ,180.
*
* \~english
*
* Reverse print,Rotate the label 180.
*
* @brief Reverse print,Rotate the label 180.
*
*/
- (void)cpclPoPrint;
/*!
* \~chinese
*
*
*
* @brief
* @param range .
*
* \~english
*
* center justification.
*
* @brief center justification.
* @param range The width of the area to center on from the left side.
*
*/
- (void)cpclCenterWithRange:(NSInteger)range;
/*!
* \~chinese
*
*
*
* @brief
*
* \~english
*
* center justification.
*
* @brief center justification.
*
*/
- (void)cpclCenter;
/*!
* \~chinese
*
* .
*
* @brief .
* @param range FONT-GROUP
*
* \~english
*
* left justification.
*
* @brief left justification.
* @param range When used with LEFT, the only function Range performs is a field specification function for FONT-GROUP.
*
*/
- (void)cpclLeft:(NSInteger)range;
/*!
* \~chinese
*
* .
*
* @brief .
*
* \~english
*
* left justification.
*
* @brief left justification.
*
*/
- (void)cpclLeft;
/*!
* \~chinese
*
* .
*
* @brief .
* @param right .
*
* \~english
*
* right justification.
*
* @brief right justification.
* @param right the location of the right side to justify to.
*
*/
- (void)cpclRight:(NSInteger)right;
/*!
* \~chinese
*
* .
*
* @brief .
*
* \~english
*
* right justification.
*
* @brief right justification.
*
*/
- (void)cpclRight;
/*!
* \~chinese
*
* .
*
* @brief .
* @param lineHeight ().
*
* \~english
*
* print a number of lines of text using the same font without having to manually specify the spacing or positioning of each line.
*
* @brief Start multiline text printing.
* @param lineHeight Spacing between each line in units.
*/
- (void)cpclMultiLineStartWithLineHeight:(NSInteger)lineHeight;
/*!
* \~chinese
*
* .
*
* @brief .
*
* \~english
*
* terminated multi line command.
*
* @brief terminated multi line command.
*
*/
- (void)cpclMultiLineEnd;
/*!
* \~chinese
*
* TrueType.
*
* @brief TrueType.
* @param degrees .
*
* \~english
*
* specify the rotation of a scalable or TrueType font within the printer.
*
* @brief specify the rotation of a scalable or TrueType font within the printer.
* @param degrees The number of degrees to rotate counter-clockwise.
*
*/
- (void)cpclRotate:(NSInteger)degrees;
/*!
* \~chinese
*
* TrueType.
*
* @brief TrueType.
* @param scaledFont .
* @param xScale ().
* @param yScale ().
* @param x .
* @param y .
* @param text .
*
* \~english
*
* print scaled text in CPCL from either a scaled or TrueType font.
*
* @brief print scaled text in CPCL from either a scaled or TrueType font.
* @param scaledFont A scaled font used to create the text.
* @param xScale The X size of the scaled font, in points.
* @param yScale The Y size of the scaled font, in points.
* @param x The X origin of the scaled text in units.
* @param y The Y origin of the scaled text in units.
* @param text The text data to be printed.
*
*/
- (void)cpclScaleText:(PTCPCLScaledFontName)scaledFont
xScale:(NSInteger)xScale
yScale:(NSInteger)yScale
x:(NSInteger)x
y:(NSInteger)y
text:(NSString * _Nonnull)text;
/*!
* \~chinese
*
* TrueType.
*
* @brief TrueType.
* @param scaledFont .
* @param xScale ().
* @param yScale ().
* @param x .
* @param y .
* @param text .
*
* \~english
*
* print scaled text in CPCL from either a scaled or TrueType font. rotated 90 degrees.
*
* @brief print scaled text in CPCL from either a scaled or TrueType font. rotated 90 degrees.
* @param scaledFont A scaled font used to create the text.
* @param xScale The X size of the scaled font, in points.
* @param yScale The Y size of the scaled font, in points.
* @param x The X origin of the scaled text in units.
* @param y The Y origin of the scaled text in units.
* @param text The text data to be printed.
*
*/
- (void)cpclScaleTextVertical:(PTCPCLScaledFontName)scaledFont
xScale:(NSInteger)xScale
yScale:(NSInteger)yScale
x:(NSInteger)x
y:(NSInteger)y
text:(NSString * _Nonnull)text;
/*!
* \~chinese
*
* .TrueType.
*
* @brief
* @param scaledFont .
* @param width .
* @param height .
* @param x .
* @param y .
* @param text .
*
* \~english
*
* print scaled text which is to fit within a particular bounding box. It can be used with TrueType or scaled fonts.
*
* @brief print scaled text which is to fit within a particular bounding box
* @param scaledFont A scaled font used to create the text.
* @param width The width of the box to contain the text.
* @param height The height of the box to contain the text.
* @param x The X origin of the scaled text in units.
* @param y The Y origin of the scaled text in units.
* @param text The text data to be printed.
*
*/
- (void)cpclScaleToFit:(PTCPCLScaledFontName)scaleFont
width:(NSInteger)width
height:(NSInteger)height
x:(NSInteger)x
y:(NSInteger)y
text:(NSString * _Nonnull)text;
/*!
* \~chinese
*
* .
*
* @brief .
* @param boldness .
*
* \~english
*
* add a faux bolding effect to pre-scaled fonts.
*
* @brief add a faux bolding effect to pre-scaled fonts.
* @param boldness the boldness of the text.
*
*/
- (void)cpclSetBold:(PTCPCLTextBold)boldness;
/*!
* \~chinese
*
* .
*
* @brief .
* @param spacing .
*
* \~english
*
* set the horizontal spacing between characters.
*
* @brief set the horizontal spacing between characters.
* @param spacing the spacing between characters of a font.
*
*/
- (void)cpclSetSpacing:(NSInteger)spacing;
/*!
* \~chinese
*
*
*
* @brief
* @param width , 1-16.
* @param height , 1-16.
*
* \~english
*
* set the output scaling of pre-scaled fonts
*
* @brief set the output scaling of pre-scaled fonts
* @param width the width multiplier of the font, 1-16.
* @param height the height multiplier of the font, 1-16.
*
*/
- (void)cpclSetMagWithWidth:(PTCPCLFontScale)width height:(PTCPCLFontScale)height;
/*!
* \~chinese
*
* .
*
* @brief .
* @param rotate
* @param font
* @param fontSize ,0
* @param x x
* @param y y
* @param safeHeight ,
* @param width ,0
* @param lineSpacing
* @param fontScale
* @param text
* @return
*
* \~english
*
* print text that feed line automatically.
*
* @brief print text that feed line automatically.
* @param rotate text rotate.
* @param font text font.
* @param fontSize text font scaledeault is 0other values are invalid
* @param x orgin x of text.
* @param y origin y of text.
* @param safeHeight height of text field.Part will not print more than height
* @param width width of text field.if width is 0,not auto line
* @param lineSpacing line space.
* @param fontScale Font magnification factor
* @param text text.
* @return Actual print height after automatic line feed
*/
- (NSInteger)cpclAutoTextWithRotate:(PTCPCLStyleRotation)rotate
font:(PTCPCLTextFontName)font
fontSize:(NSInteger)fontSize
x:(NSInteger)x
y:(NSInteger)y
safeHeight:(NSInteger)safeHeight
width:(NSInteger)width
lineSpacing:(NSInteger)lineSpacing
fontScale:(PTCPCLFontScale)fontScale
text:(NSString * _Nonnull)text;
/*!
* \~chinese
*
* ,90,90\270cpclCenter
*
* @brief .
* @param rotate
* @param font
* @param fontSize ,0
* @param xPos x
* @param yPos y
* @param center
* @param safeHeight ,
* @param width ,0
* @param lineSpacing
* @param fontScale
* @param text
* @return
*
* \~english
*
* print text that feed line automatically.rotate 90\270,the cpclCenter interface is invalid
*
* @brief print text that feed line automatically
* @param rotate text rotate.
* @param font text font.
* @param fontSize text font scale,deault is 0other values are invalid
* @param xPos orgin x of text.
* @param yPos origin y of text.
* @param center Whether in the middle
* @param safeHeight height of text field.Part will not print more than height
* @param width width of text field.if width is 0,not auto line
* @param lineSpacing line space.
* @param fontScale Font magnification factor.
* @param text text.
* @return Actual print height after automatic line feed
*/
- (NSInteger)cpclAutoTextWithRotate:(PTCPCLStyleRotation)rotate
font:(PTCPCLTextFontName)font
fontSize:(NSInteger)fontSize
xPos:(NSInteger)xPos
yPos:(NSInteger)yPos
center:(BOOL)center
safeHeight:(NSInteger)safeHeight
width:(NSInteger)width
lineSpacing:(NSInteger)lineSpacing
fontScale:(PTCPCLFontScale)fontScale
text:(NSString * _Nonnull)text;
/*!
* \~chinese
*
* ,使
*
* @brief
* @param font PTCPCLThaiFontStyle1PTCPCLThaiFontStyle0
* @param fontSize 0
* @param x x
* @param y y
* @param lineSpace 30
* @param width ,0x+width,width=w-x
* @param text
*
* \~english
*
* Text wrap automatically, recommended
*
* @brief Text wraps automatically
* @param font text fontchinesePTCPCLThaiFontStyle1otherPTCPCLThaiFontStyle0
* @param fontSize text font size.deault 0
* @param x orgin x of text.
* @param y origin y of text.
* @param lineSpace Line spacing for automatic line feed.default 30
* @param width width of text field.
* @param text text.
*/
- (void)cpclPrintAutoTextWithFont:(PTCPCLTextLineFontStyle)font
fontSize:(NSInteger)fontSize
x:(NSInteger)x
y:(NSInteger)y
lineSpace:(NSInteger)lineSpace
width:(NSInteger)width
text:(NSString * _Nonnull)text;
/*!
* \~chinese
*
*
*
* @brief
* @param rotate
* @param font
* @param fontSize 0
* @param x x
* @param y y
* @param width
* @param text
*
* \~english
*
* Print center text
*
* @brief Print center text
* @param rotate text rotate.
* @param font text font.
* @param fontSize This parameter is invalid, default is 0
* @param x orgin x of text.
* @param y origin y of text.
* @param width width of textbox
* @param text content of text.
*/
- (void)cpclCenterTextWithRotate:(PTCPCLStyleRotation)rotate
font:(PTCPCLTextFontName)font
fontSize:(NSInteger)fontSize
x:(NSInteger)x
y:(NSInteger)y
width:(NSInteger)width
text:(NSString * _Nonnull)text;
/*!
* \~chinese
*
* .
*
* @brief .
* @param rotate
* @param font
* @param fontSize 0使cpclSetMagWithWidth: height:
* @param x x
* @param y y
* @param text
*
* \~english
*
* print text.
*
* @brief print text.
* @param rotate text rotate.
* @param font text font.
* @param fontSize text font scaleThis parameter is 0 by default. If other enumeration values are selected, printer firmware support is required. In cases where the firmware is not supported, the zoom font can be used (cpclSetMagWithWidth: height:) interface
* @param x orgin x of text.
* @param y origin y of text.
* @param text text.
*/
- (void)cpclTextWithRotate:(PTCPCLStyleRotation)rotate
font:(PTCPCLTextFontName)font
fontSize:(PTCPCLTextFontSize)fontSize
x:(NSInteger)x
y:(NSInteger)y
text:(NSString * _Nonnull)text;
/*!
* \~chinese
*
* .
*
* @brief .
* @param font
* @param rotate
* @param fontSize 0使cpclSetMagWithWidth: height:
* @param reverse
* @param bold
* @param x x
* @param y y
* @param text
*
* \~english
*
* print reverse bold text.
*
* @brief print reverse bold text.
* @param font text font.
* @param rotate text rotate.
* @param fontSize text font scaleThis parameter is 0 by default. If other enumeration values are selected, printer firmware support is required. In cases where the firmware is not supported, the zoom font can be used (cpclSetMagWithWidth: height:) interface
* @param reverse Whether it is reversed
* @param bold bold
* @param x origin x of text.
* @param y origin y of text.
* @param text text.
*/
- (void)appendTextWithFont:(PTCPCLTextFontName)font
rotate:(PTCPCLStyleRotation)rotate
fontSize:(PTCPCLTextFontSize)fontSize
reverse:(BOOL)reverse
bold:(PTCPCLTextBold)bold
x:(NSInteger)x
y:(NSInteger)y
text:(NSString * _Nonnull)text;
/////////////////////////////////////////////////////////////////////
/***************** Background Text Commands *******************/
/////////////////////////////////////////////////////////////////////
/*!
* \~chinese
*
* .(0-255) 0normal
*
* @brief
* @param value .
*
* \~english
*
* Set the background blackness value.(0-255) 0normal
*
* @brief Set the background blackness value
* @param value Set the background blackness value
*
*/
- (void)cpclSetBackgroundBlacknessValue:(NSInteger)value;
/*!
* \~chinese
*
* .
*
* @brief .
* @param font
* @param rotate
* @param fontSize
* @param xPos xPos
* @param yPos yPos
* @param text
*
* \~english
*
* set back textSome models are not supported.
*
* @brief set back text.
* @param font text font.
* @param rotate text rotate.
* @param fontSize Size identifier for the font
* @param xPos x-coordinate of start point
* @param yPos y-coordinate of start point
* @param text The text data to be printed
*/
- (void)cpclBackTextWithFont:(PTCPCLTextFontName)font
rotate:(PTCPCLStyleRotation)rotate
fontSize:(NSInteger)fontSize
xPos:(NSInteger)xPos
yPos:(NSInteger)yPos
text:(NSString *_Nonnull)text;
/*!
* \~chinese
*
* SN
*
* @brief SN
*
* \~english
*
* get printer serial number.
*
* @brief get printer serial number.
*
*/
- (void)cpclGetPrinterSN;
/*!
* \~chinese
*
* 1A400\A300S\A300L
*
* @brief 1
* @param type
*
* \~english
*
* set the paper type1A400\A300S\A300L does not support this interface
*
* @brief set the paper type1.
* @param type paper type.
*
*/
- (void)cpclPaperTypeWithType:(PTCPCLPaperType)type;
/////////////////////////////////////////////////////////////////////
/****************** A400\A300S\A300L For Paper Type ****************/
/////////////////////////////////////////////////////////////////////
/*!
* \~chinese
*
* 2A400\A300S\A300L
*
* @brief 2
* @param type
*
* \~english
*
* set the paper type2A400\A300S\A300L supports this interface
*
* @brief set the paper type2
* @param type paper type.
*
*/
- (void)setPrinterPaperTypeFor4Inch:(PTCPCLNewPaperType)type;
/*!
* \~chinese
*
* .
*
* @brief .
* @param density 0-2
*
* \~english
*
* set the darkness of the printout from the printer
*
* @brief set the darkness of the printout from the printer
* @param density 0-2
*
*/
- (void)setPrinterDensity:(NSInteger)density;
/*!
* \~chinese
*
*
*
* @brief
*
* \~english
*
* get printer density.
*
* @brief get printer density.
*
*/
- (void)getPrinterDensity;
/*!
* \~chinese
*
*
*
* @brief <000902> 92%
*
* \~english
*
* get Printer BatteryThis interface is a custom function, which is only supported by some models
*
* @brief get Printer Battery,<000902> is 92%
*
*/
- (void)getPrinterBattery;
/////////////////////////////////////////////////////////////////////
/***************** Line Print Commands *******************/
/////////////////////////////////////////////////////////////////////
/*!
* \~chinese
*
* .
*
* @brief .
*
* \~english
*
* start utilities sessions.
*
* @brief start utilities sessions.
*
*/
- (void)cpclUtilitySession;
/*!
* \~chinese
*
*
*
* @brief
*
* \~english
*
* prefix if a single line utilities session.
*
* @brief prefix if a single line utilities session.
*
*/
- (void)cpclLineMode;
/*!
* \~chinese
*
*
*
* @brief
* @param offset .
*
* \~english
*
* Set margin
*
* @brief Set margin
* @param offset Specifics the distance from the left edge in units
*
*/
- (void)cpclLineMargin:(NSInteger)offset;
/*!
* \~chinese
*
*
*
* @brief
*
* \~english
*
* feed
*
* @brief feed
*
*/
- (void)cpclLineFeed;
/*!
* \~chinese
*
*
*
* @brief
* @param amount . -4000~4000dots
*
* \~english
*
* Set feed
*
* @brief Set feed
* @param amount How much to feed in units.-4000~4000dots
*
*/
- (void)cpclFeed:(NSInteger)amount;
/*!
* \~chinese
*
*
*
* @brief
* @param amount . 0~4000dots
*
* \~english
*
* when used in a label session, is used to perform an additional media movement before a label is printed
*
* @brief Set the print label before the offset
* @param amount How much to feed in units.0~4000dots
*
*/
- (void)cpclReverse:(NSInteger)amount;
/*!
* \~chinese
*
* .
*
* @brief .
* @param value ,0-5.
*
* \~english
*
* set the maximum speed at which printout occurs.
*
* @brief set the maximum speed at which printout occurs.
* @param value speed to print in an arbitrary scale,0-5.
*
*/
- (void)cpclSpeed:(NSInteger)value;
/*!
* \~chinese
*
* .
*
* @brief .
*
* \~english
*
* the printer should attempt to synchronize to a mark or gap on the media after the label is printedUsed for label paper printing.
*
* @brief Positioning label
*
*/
- (void)cpclForm;
/*!
* \~chinese
*
* .
*
* @brief .
* @param value , -100~200.0
*
* \~english
*
* set the darkness of the printout from the printer.default:0
*
* @brief set the darkness of the printout from the printer
* @param value darkness of the printout, -100~200.
*
*/
- (void)cpclTone:(NSInteger)value;
/*!
* \~chinese
*
* .
*
* @brief .
* @param degrees ,0 180.
*
* \~english
*
* changes the orientation of the printed label or of line print text
*
* @brief changes the orientation of the printed label or of line print text
* @param degrees The orientation of the label, 0 or 180.
*
*/
- (void)cpclTurn:(NSInteger)degrees;
/////////////////////////////////////////////////////////////////////
/****************** Utility and Diagnostic Commands ****************/
/////////////////////////////////////////////////////////////////////
/*!
* \~chinese
*
*
*
* @brief .
*
* \~english
*
* Paper learning instructions.If the printer shows that the paper is out of paper, send the instruction in the state of closing the paper
*
* @brief Paper learning instructions
*
*/
- (void)setPaperLearn;
/*!
* \~chinese
*
* QRCodeversion0-2501-25().
*
* @brief QRCode
* @param density 0-25
*
* \~english
*
* Set the QRCode versionthe range of version is 0-25, when it is equal to 0, it means that the program uses automatic; 1-25, it means that the size set nowsome models are supported
*
* @brief Set the version of QRCode
* @param density 0-25
*
*/
- (void)setQRCodeVersion:(NSInteger)version;
/*!
* \~chinese
*
* QRCode
*
* @brief QRCode
*
* \~english
*
* Get the QRCode versionsome models are supported
*
* @brief Get the QRCode version
*
*/
- (void)getQRCodeVersion;
/*!
* \~chinese
*
* A300S
*
* @brief
*
* \~english
*
* Get printer modelPart of the A300S firmware version is supported
*
* @brief Get printer model
*
*/
- (void)cpclGetPrinterModel;
/////////////////////////////////////////////////////////////////////
/********************* Codepage Commands ********************/
/////////////////////////////////////////////////////////////////////
/*!
* \~chinese
*
* .
*
* @brief .
* @param codepage "USA" "FRANCE" "GERMANY" "UK" "DENMARK" "SWEDEN" "ITALY" "SPAIN" "JAPAN-S" "NORWAY" "DENMARK II" "SPAIN II" "LATIN9" "KOREA" "SLOVENIA" "CHINA" "BIG5" "CP874" "CP850" "CP437" "CP860" "CP863" "CP865" "CP866" "CP852" "CP858" "CP857" "CP737" "CP720" "CP775" "CP855" "CP862" "CP864" "ISO8859-6" "ISO8859-8" "ISO8859-9" "ISO8859-15" "WPC1252" "WPC1250" "WPC1251" "WPC1252" "WPC1254" "WPC1255" "WPC1256" "ISO8859-1" "ISO8859-2" "ISO8859-3" "ISO8859-4" "ISO8859-5" "TIS11" "TIS18" "WPC1258" "UnicodeBigUnmarked"
*
* \~english
*
* Set Character CodePage
*
* @brief Set Character CodePage
* @param codepage "USA" "FRANCE" "GERMANY" "UK" "DENMARK" "SWEDEN" "ITALY" "SPAIN" "JAPAN-S" "NORWAY" "DENMARK II" "SPAIN II" "LATIN9" "KOREA" "SLOVENIA" "CHINA" "BIG5" "CP874" "CP850" "CP437" "CP860" "CP863" "CP865" "CP866" "CP852" "CP858" "CP857" "CP737" "CP720" "CP775" "CP855" "CP862" "CP864" "ISO8859-6" "ISO8859-8" "ISO8859-9" "ISO8859-15" "WPC1252" "WPC1250" "WPC1251" "WPC1252" "WPC1254" "WPC1255" "WPC1256" "ISO8859-1" "ISO8859-2" "ISO8859-3" "ISO8859-4" "ISO8859-5" "TIS11" "TIS18" "WPC1258" "UnicodeBigUnmarked"
*
*/
- (void)cpclSetCharacterCodePage:(NSString *_Nonnull)codepage;
/*!
* \~chinese
*
* 00 00 01 00
*
* @brief
*
* \~english
*
* Get Khmer status:00 00close 01 00open
*
* @brief Get Khmer status
*
*/
- (void)cpclSearchKhmerState;
/*!
* \~chinese
*
* ,cpclSetKhmerCodepage
*
* @brief
* @param state 0 1
*
* \~english
*
* Set the Khmer language switch. To print other code pages, close the Khmer language mode first and then switch the code page setting mode. When printing Khmer language, open the Khmer language mode first,and invoke 'cpclSetKhmerCodepage'
*
* @brief Set Khmer on/off state
* @param state 0close; 1:open
*
*/
- (void)cpclSetKhmerState:(NSInteger)state;
/*!
* \~chinese
*
* 855退cpclExitKhmerMode
*
* @brief
*
* \~english
*
* Set the Khmer language code page, under which Chinese is printed with font size of 8 and font size of 55. After printing, exit Khmer mode and call cpclExitKhmerMode
*
* @brief Set Khmer codepage
*
*/
- (void)cpclSetKhmerCodepage;
/*!
* \~chinese
*
* 退
*
* @brief 退
*
* \~english
*
* Exit Khmer language mode
*
* @brief Exit Khmer language mode
*
*/
- (void)cpclExitKhmerMode;
/*!
* \~chinese
*
* ,
*
* @brief ,
* @param function 48 491502513
*
* \~english
*
* Arabic transform
*
* @brief Arabic transform
* @param function 48close 49Sort by word50Phrase sort51Sort by complete rules
*
*/
- (void)cpclSetArabicTransformFunction:(NSInteger)function;
/*!
* \~chinese
*
* 00 00 01 001 02 002 03 003
*
* @brief
*
* \~english
*
* get Arabic status:00 00close 01 00Sort by word 02 00Phrase sort 03 00Sort by complete rules
*
* @brief get Arabic status
*
*/
- (void)cpclGetArabicTransformStatus;
/*!
* \~chinese
*
*
*
* @brief
* @param status 48close 49:open
*
* \~english
*
* Thai transform status
*
* @brief Thai transform status
* @param status 48close 49:open
*
*/
- (void)cpclSetThaiTransformStatus:(NSInteger)status;
/*!
* \~chinese
*
* .
*
* @brief .
* @param function 48 49ASCII 50UTF-8
*
* \~english
*
* Set Vietnamese Transform
*
* @brief Set Vietnamese Transform
* @param function 48close; 49ASCII; 50UTF-8
*
*/
- (void)cpclSetVietnameseTransformFunction:(NSInteger)function;
/*!
* \~chinese
*
* 00 00 01 00ASCII 02 00UTF-8
*
* @brief
*
* \~english
*
* get Vietnamese status:00 00close 01 00ASCII 02 00UTF-8
*
* @brief get Vietnamese status
*
*/
- (void)cpclGetVietnameseTransformStatus;
@end