Added in Version 1.0.0

PrinterBuilder

プリンターに関するStarXpandCommandを生成するクラス

コンストラクタ

init()

オブジェクトの初期化

メソッド

styleAlignment(_ position: StarXpandCommand.Printer.Alignment)

位置揃えを設定

styleAmbiguousCharacterWidthType(type: StarXpandCommand.Printer.AmbiguousCharacterWidthType)

UTF-8の全半角あいまい文字を印字するときの幅タイプを設定

styleFont(_ type: StarXpandCommand.Printer.FontType)

フォントを設定

styleBold(_ enable: Bool)

太字を設定

styleInvert(_ enable: Bool)

白黒反転を設定

styleUnderLine(_ enable: Bool)

下線を設定

styleMagnification(_ parameter: StarXpandCommand.MagnificationParameter)

拡大を設定

styleCharacterSpace(_ width: Double)

文字間隔を設定

styleLineSpace(_ height: Double)

行間隔を設定

styleHorizontalPositionTo(_ position: Double)

水平絶対位置を設定

styleHorizontalPositionBy(_ position: Double)

水平相対位置を設定

styleHorizontalTabPositions(_ positions: [Int])

水平タブを設定

styleInternationalCharacter(_ type: StarXpandCommand.Printer.InternationalCharacterType)

国際文字を設定

styleSecondPriorityCharacterEncoding(_ type: StarXpandCommand.Printer.CharacterEncodingType)

第二優先文字エンコーディングを設定

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

CJK統合漢字優先順位を設定

actionCut(_ type: StarXpandCommand.Printer.CutType)

用紙カットを実行

actionFeed(_ height: Double)

用紙送り(mm単位)を実行

actionFeedLine(_ lines: Int)

用紙送り(行単位)を実行

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

テキスト印刷を実行

actionPrintLogo(_ parameter: StarXpandCommand.Printer.LogoParameter)

ロゴ印刷を実行

actionPrintBarcode(_ parameter: StarXpandCommand.Printer.BarcodeParameter)

バーコード印刷を実行

actionPrintPDF417(_ parameter: StarXpandCommand.Printer.PDF417Parameter)

PDF417印刷を実行

actionPrintQRCode(_ parameter: StarXpandCommand.Printer.QRCodeParameter)

QRコード印刷を実行

actionPrintImage(_ parameter: StarXpandCommand.Printer.ImageParameter)

画像印刷を実行

actionPrintRuledLine(_ parameter: StarXpandCommand.Printer.RuledLineParameter)

罫線印刷を実行

add(_ builder: StarXpandCommand.PrinterBuilder)

プリンターを追加

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

ページモードを追加