Added in Version 1.0.0

PrinterBuilder

The class that creates StarXpandCommand for a printer

Constructor

init()

Initialize object

Method

styleAlignment(_ position: StarXpandCommand.Printer.Alignment)

Set the alignment

styleAmbiguousCharacterWidthType(type: StarXpandCommand.Printer.AmbiguousCharacterWidthType)

Set the Width type of a character when printing ambiguous characters in UTF-8

styleFont(_ type: StarXpandCommand.Printer.FontType)

Set the font

styleBold(_ enable: Bool)

Set the bold

styleInvert(_ enable: Bool)

Set the inversion

styleUnderLine(_ enable: Bool)

Set the underline

styleMagnification(_ parameter: StarXpandCommand.MagnificationParameter)

Set the magnification

styleCharacterSpace(_ width: Double)

Set the character spacing

styleLineSpace(_ height: Double)

Set the line spacing

styleHorizontalPositionTo(_ position: Double)

Set the horizontal absolute position

styleHorizontalPositionBy(_ position: Double)

Set the horizontal relative position

styleHorizontalTabPositions(_ positions: [Int])

Set the horizontal tab positions

styleInternationalCharacter(_ type: StarXpandCommand.Printer.InternationalCharacterType)

Set international character

styleSecondPriorityCharacterEncoding(_ type: StarXpandCommand.Printer.CharacterEncodingType)

Set the secondary character encoding

styleCJKCharacterPriority(_ types: [StarXpandCommand.Printer.CJKCharacterType])

Set the priority of CJK unified ideographs

actionCut(_ type: StarXpandCommand.Printer.CutType)

Execute paper cutting

actionFeed(_ height: Double)

Execute paper feeding (per mm)

actionFeedLine(_ lines: Int)

Execute paper feeding (per line)

actionPrintText(_ content: String, _ parameter: TextParameter? = nil)

Execute text printing

actionPrintLogo(_ parameter: StarXpandCommand.Printer.LogoParameter)

Execute logo printing

actionPrintBarcode(_ parameter: StarXpandCommand.Printer.BarcodeParameter)

Execute barcode printing

actionPrintPDF417(_ parameter: StarXpandCommand.Printer.PDF417Parameter)

Execute PDF417 printing

actionPrintQRCode(_ parameter: StarXpandCommand.Printer.QRCodeParameter)

Execute QR code printing

actionPrintImage(_ parameter: StarXpandCommand.Printer.ImageParameter)

Execute image printing

actionPrintRuledLine(_ parameter: StarXpandCommand.Printer.RuledLineParameter)

Execute ruled line printing

add(_ builder: StarXpandCommand.PrinterBuilder)

Add a printer

addPageMode(_ parameter: StarXpandCommand.Printer.PageModeAreaParameter, _ builder: StarXpandCommand.PageModeBuilder)

Add a page mode