Added in Version 1.0.0

DocumentBuilder

The class that creates StarXpandCommand for a document

Constructor

DocumentBuilder()

Initialize object

Method

settingTopMargin(height: number)

Set the top margin

settingBlackMark(parameter: StarXpandCommand.Printer.BlackMarkParameter)

Set the black mark

settingLabel(parameter: StarXpandCommand.Printer.LabelParameter)

Set the label

settingHoldPrint(parameter: StarXpandCommand.Printer.HoldPrintParameter)

Set hold print

settingPrintableArea(width: number)

Set the printable area

addPrinter(builder: StarXpandCommand.PrinterBuilder)

Add a printer

addDrawer(builder: StarXpandCommand.DrawerBuilder)

Add a cash drawer

addBuzzer(builder: StarXpandCommand.BuzzerBuilder)

Add a buzzer

addMelodySpeaker(builder: StarXpandCommand.MelodySpeakerBuilder)

Add a melody speaker

addDisplay(builder: StarXpandCommand.DisplayBuilder)

Add a customer display

addRaw(content: Array<number>)

Add the raw data