Added in Version 2.3.0

PageModeBuilder

The class that creates StarXpandCommand for page mode

Constructor

init()

Initialize object

Method

stylePrintDirection(_ direction: StarXpandCommand.Printer.PageModePrintDirection)

Set the printing direction

styleHorizontalPositionTo(_ position: Double)

Set the horizontal absolute position

styleHorizontalPositionBy(_ position: Double)

Set the horizontal relative position

styleVerticalPositionTo(_ position: Double)

Set the vertical absolute position

styleVerticalPositionBy(_ position: Double)

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

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

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

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.ImageParameter)

Execute image printing

actionPrintRuledLine(_ parameter: StarXpandCommand.Printer.PageModeRuledLineParameter)

Execute ruled line printing

actionPrintRectangle(_ parameter: StarXpandCommand.Printer.PageModeRectangleParameter)

Execute rectangle printing

add(_ builder: StarXpandCommand.PageModeBuilder)

Add a page mode

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

Add a page mode