Added in Version 1.0.0

PrinterBuilder

The class that creates StarXpandCommand for a printer

Constructor

PrinterBuilder()

Initialize object

Method

styleAlignment(alignment: 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: boolean)

Set the bold

styleInvert(enable: boolean)

Set the inversion

styleUnderLine(enable: boolean)

Set the underline

styleMagnification(parameter: StarXpandCommand.MagnificationParameter)

Set the magnification

styleCharacterSpace(width: number)

Set the character spacing

styleLineSpace(height: number)

Set the line spacing

styleHorizontalPositionTo(position: number)

Set the horizontal absolute position

styleHorizontalPositionBy(position: number)

Set the horizontal relative position

styleHorizontalTabPositions(positions: Array<number>)

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: Array<StarXpandCommand.Printer.CjkCharacterType>)

Set the priority of CJK unified ideographs

actionCut(type: StarXpandCommand.Printer.CutType)

Execute paper cutting

actionFeed(height: number)

Execute paper feeding (per mm)

actionFeedLine(lines: number)

Execute paper feeding (per line)

actionPrintText(content: string, parameter?: StarXpandCommand.Printer.TextParameter | undefined)

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: RuledLineParameter)

Execute ruled line printing

add(builder: PrinterBuilder)

Add a printer

addPageMode(parameter: PageModeAreaParameter, builder: PageModeBuilder)

Add a page mode