Select your printer model

Parameters are refined by the selected printer.

TM-P20II


Printer Specifications

Item

Specification

Amount of initial feed

30 dots

Initial page mode area

384 x 2400 dots

Maximum page mode area

384 x 2400 dots

Baseline of Font A

21 dots from the top of the character

Baseline of Font B

21 dots from the top of the character

Baseline of Font C

16 dots from the top of the character

APIs for which restricted parameter setting values can be specified

Epos2Printer Class

  • initWithPrinterSeries
  • Parameter

    Specificable Setting Value

    printerSeries

    • EPOS2_TM_P20II

    lang

    • EPOS2_MODEL_ANK
    • EPOS2_MODEL_CHINESE
    • EPOS2_MODEL_TAIWAN
    • EPOS2_MODEL_SOUTHASIA
  • addTextFont
  • Parameter

    Specificable Setting Value

    font

    • EPOS2_FONT_A (default)
    • EPOS2_FONT_B
    • EPOS2_FONT_C
    • EPOS2_PARAM_DEFAULT
  • addTextStyle
  • Parameter

    Specificable Setting Value

    reverse

    • EPOS2_TRUE
    • EPOS2_FALSE (default)
    • EPOS2_PARAM_UNSPECIFIED
    • EPOS2_PARAM_DEFAULT

    ul

    • EPOS2_TRUE
    • EPOS2_FALSE (default)
    • EPOS2_PARAM_UNSPECIFIED
    • EPOS2_PARAM_DEFAULT

    em

    • EPOS2_TRUE
    • EPOS2_FALSE (default)
    • EPOS2_PARAM_UNSPECIFIED
    • EPOS2_PARAM_DEFAULT

    color

    • EPOS2_COLOR_1 (default)
    • EPOS2_COLOR_4
    • EPOS2_PARAM_UNSPECIFIED
    • EPOS2_PARAM_DEFAULT
  • addImage
  • Parameter

    Specificable Setting Value

    data

    -

    x

    • Integer from 0 to 65534

    y

    • Integer from 0 to 65534

    width

    • Integer from 1 to 65535

    height

    • Integer from 1 to 65535

    color

    • EPOS2_COLOR_NONE
    • EPOS2_COLOR_1
    • EPOS2_PARAM_DEFAULT

    mode

    • EPOS2_MODE_MONO
    • EPOS2_MODE_MONO_HIGH_DENSITY
    • EPOS2_PARAM_DEFAULT

    halftone

    • EPOS2_HALFTONE_DITHER
    • EPOS2_HALFTONE_ERROR_DIFFUSION
    • EPOS2_HALFTONE_THRESHOLD
    • EPOS2_PARAM_DEFAULT

    brightness

    • Real number from 0.1 to 10.0
    • EPOS2_PARAM_DEFAULT

    compress

    • EPOS2_COMPRESS_DEFLATE
    • EPOS2_COMPRESS_NONE
    • EPOS2_COMPRESS_AUTO
    • EPOS2_PARAM_DEFAULT
  • addSymbol
  • Parameter

    Specificable Setting Value

    data

    -

    type

    • EPOS2_SYMBOL_PDF417_STANDARD
    • EPOS2_SYMBOL_PDF417_TRUNCATED
    • EPOS2_SYMBOL_QRCODE_MODEL_1
    • EPOS2_SYMBOL_QRCODE_MODEL_2
    • EPOS2_SYMBOL_MAXICODE_MODE_2
    • EPOS2_SYMBOL_MAXICODE_MODE_3
    • EPOS2_SYMBOL_MAXICODE_MODE_4
    • EPOS2_SYMBOL_MAXICODE_MODE_5
    • EPOS2_SYMBOL_MAXICODE_MODE_6
    • EPOS2_SYMBOL_GS1_DATABAR_STACKED
    • EPOS2_SYMBOL_GS1_DATABAR_STACKED_
      OMNIDIRECTIONAL
    • EPOS2_SYMBOL_GS1_DATABAR_EXPANDED_STACKED
    • EPOS2_SYMBOL_AZTECCODE_FULLRANGE
    • EPOS2_SYMBOL_AZTECCODE_COMPACT
    • EPOS2_SYMBOL_DATAMATRIX_SQUARE
    • EPOS2_SYMBOL_DATAMATRIX_RECTANGLE_8
    • EPOS2_SYMBOL_DATAMATRIX_RECTANGLE_12
    • EPOS2_SYMBOL_DATAMATRIX_RECTANGLE_16

    level

    • EPOS2_LEVEL_0
    • EPOS2_LEVEL_1
    • EPOS2_LEVEL_2
    • EPOS2_LEVEL_3
    • EPOS2_LEVEL_4
    • EPOS2_LEVEL_5
    • EPOS2_LEVEL_6
    • EPOS2_LEVEL_7
    • EPOS2_LEVEL_8
    • EPOS2_LEVEL_L
    • EPOS2_LEVEL_M
    • EPOS2_LEVEL_Q
    • EPOS2_LEVEL_H
    • Integer from 5 to 95
    • EPOS2_PARAM_DEFAULT
    • EPOS2_PARAM_UNSPECIFIED
  • addPageLine
  • Parameter

    Specificable Setting Value

    x1

    • Integer from 0 to 65535

    y1

    • Integer from 0 to 65535

    x2

    • Integer from 0 to 65535

    y2

    • Integer from 0 to 65535

    lineStyle

    • EPOS2_LINE_THIN
    • EPOS2_LINE_MEDIUM
    • EPOS2_LINE_THICK
    • EPOS2_PARAM_DEFAULT
  • addPageRectangle
  • Parameter

    Specificable Setting Value

    x1

    • Integer from 0 to 65535

    y1

    • Integer from 0 to 65535

    x2

    • Integer from 0 to 65535

    y2

    • Integer from 0 to 65535

    Style

    • EPOS2_LINE_THIN
    • EPOS2_LINE_MEDIUM
    • EPOS2_LINE_THICK
    • EPOS2_PARAM_DEFAULT
  • addCut
  • Parameter

    Specificable Setting Value

    type

    • EPOS2_CUT_FEED
    • EPOS2_CUT_NO_FEED
    • EPOS2_PARAM_DEFAULT
  • addSound
  • Parameter

    Specificable Setting Value

    pattern

    • EPOS2_PATTERN_NONE
    • EPOS2_PATTERN_1
    • EPOS2_PATTERN_2
    • EPOS2_PATTERN_3
    • EPOS2_PATTERN_4
    • EPOS2_PATTERN_5
    • EPOS2_PATTERN_6
    • EPOS2_PATTERN_7
    • EPOS2_PATTERN_8
    • EPOS2_PATTERN_9
    • EPOS2_PATTERN_10
    • EPOS2_PARAM_DEFAULT

    repeat

    • 0
    • 1 to 255
    • EPOS2_PARAM_DEFAULT

    cycle

    • 1000 to 25500
    • EPOS2_PARAM_DEFAULT
  • addFeedPosition
  • Parameter

    Specificable Setting Value

    position

    • EPOS2_FEED_CUTTING
    • EPOS2_FEED_CURRENT_TOF
    • EPOS2_FEED_NEXT_TOF
  • addLayout
  • Parameter

    Specificable Setting Value

    type

    • EPOS2_LAYOUT_RECEIPT
    • EPOS2_LAYOUT_RECEIPT_BM

    width

    • Integer from 1 to 10000

    height

    • Receipt (without black mark)
    • Receipt (with black mark)

    marginTop

    • Receipt (without black mark)
    • Receipt (with black mark)

    marginBottom

    • Receipt (without black mark)
    • Receipt (with black mark)

    offsetCut

    • Receipt (without black mark)
    • Receipt (with black mark)

    offsetLabel

    • Receipt (without black mark)
    • Receipt (with black mark)
  • getMaintenanceCounter
  • Parameter

    Specificable Setting Value

    timeout

    • Integer from 5000 to 600000
    • EPOS2_PARAM_DEFAULT

    type

    • EPOS2_MAINTENANCE_COUNTER_PAPER_FEED

    delegate

    -

  • resetMaintenanceCounter
  • Parameter

    Specificable Setting Value

    timeout

    • Integer from 5000 to 600000
    • EPOS2_PARAM_DEFAULT

    type

    • EPOS2_MAINTENANCE_COUNTER_PAPER_FEED

    delegate

    -

 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

Epson ePOS SDK includes patented or patent pending functions. The contents must not be disclosed to third parties.


Epson ePOS SDK for iOS

Jump to the top