Added in Version 1.3.0

PageModeBuilder

The class that creates StarXpandCommand for page mode

Constructor

PageModeBuilder()

Initialize object

Method

stylePrintDirection(direction: StarXpandCommand.Printer.PageModePrintDirection)

Set the printing direction

styleHorizontalPositionTo(position: number)

Set the horizontal absolute position

styleHorizontalPositionBy(position: number)

Set the horizontal relative position

styleVerticalPositionTo(position: number)

Set the vertical absolute position

styleVerticalPositionBy(position: number)

Set the vertical relative position

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

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

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

Execute text 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.PageModeImageParameter)

Execute image printing

actionPrintRuledLine(parameter: StarXpandCommand.Printer.PageModeRuledLineParameter)

Execute ruled line printing

actionPrintRectangle(parameter: StarXpandCommand.Printer.PageModeRectangleParameter)

Execute rectangle printing

add(builder: StarXpandCommand.Printer.PageModeBuilder)

Add a page mode

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

Add a page mode