Select your printer model

Parameters are refined by the selected printer.

TM-P20


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

Baseline of Font D

21 dots from the top of the character

Baseline of Font E

15 dots from the top of the character

APIs for which restricted parameter setting values can be specified

Printer class

  • Printer
  • Parameter

    Specificable Setting Value

    printerSeries

    • Printer.TM_P20

    lang

    • Printer.MODEL_ANK
    • Printer.MODEL_CHINESE
    • Printer.MODEL_TAIWAN
    • Printer.MODEL_SOUTHASIA

    context

    -

  • addTextLang
  • Parameter

    Specificable Setting Value

    lang

    • Printer.LANG_EN (default)
    • Printer.LANG_JA
    • Printer.LANG_ZH_CN
    • Printer.LANG_ZH_TW
    • Printer.LANG_KO
    • Printer.LANG_TH
    • Printer.LANG_VI
    • Printer.PARAM_DEFAULT
  • addTextStyle
  • Parameter

    Specificable Setting Value

    reverse

    • Printer.TRUE
    • Printer.FALSE (default)
    • Printer.PARAM_UNSPECIFIED
    • Printer.PARAM_DEFAULT

    ul

    • Printer.TRUE
    • Printer.FALSE (default)
    • Printer.PARAM_UNSPECIFIED
    • Printer.PARAM_DEFAULT

    em

    • Printer.TRUE
    • Printer.FALSE (default)
    • Printer.PARAM_UNSPECIFIED
    • Printer.PARAM_DEFAULT

    color

    • Printer.COLOR_1 (default)
    • Printer.PARAM_UNSPECIFIED
    • Printer.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

    • Printer.COLOR_1
    • Printer.PARAM_DEFAULT

    mode

    • Printer.MODE_MONO
    • Printer. MODE_MONO_HIGH_DENSITY
    • Printer.PARAM_DEFAULT

    halftone

    • Printer.HALFTONE_DITHER
    • Printer.HALFTONE_ERROR_DIFFUSION
    • Printer.HALFTONE_THRESHOLD
    • Printer.PARAM_DEFAULT

    brightness

    • Real number from 0.1 to 10.0
    • Printer.PARAM_DEFAULT

    compress

    • Printer.COMPRESS_DEFLATE
    • Printer.COMPRESS_NONE
    • Printer.COMPRESS_AUTO
    • Printer.PARAM_DEFAULT
  • addBarcode
  • Parameter

    Specificable Setting Value

    data

    -

    type

    • Printer.BARCODE_UPC_A
    • Printer.BARCODE_UPC_E
    • Printer.BARCODE_EAN13
    • Printer.BARCODE_JAN13
    • Printer.BARCODE_EAN8
    • Printer.BARCODE_JAN8
    • Printer.BARCODE_CODE39
    • Printer.BARCODE_ITF
    • Printer.BARCODE_CODABAR
    • Printer.BARCODE_CODE93
    • Printer.BARCODE_CODE128
    • Printer.BARCODE_GS1_128
    • Printer.BARCODE_GS1_DATABAR_OMNIDIRECTIONAL
    • Printer.BARCODE_GS1_DATABAR_TRUNCATED
    • Printer.BARCODE_GS1_DATABAR_LIMITED
    • Printer.BARCODE_GS1_DATABAR_EXPANDED

    hri

    • Printer.HRI_NONE (default)
    • Printer.HRI_ABOVE
    • Printer.HRI_BELOW
    • Printer.HRI_BOTH
    • Printer.PARAM_DEFAULT
    • Printer.PARAM_UNSPECIFIED

    font

    • Printer.FONT_A (default)
    • Printer.FONT_B
    • Printer.FONT_C
    • Printer.FONT_D
    • Printer.FONT_E
    • Printer.PARAM_DEFAULT
    • Printer.PARAM_UNSPECIFIED

    width

    • Integer from 2 to 6
    • Printer.PARAM_UNSPECIFIED

    height

    • Integer from 1 to 255
    • Printer.PARAM_UNSPECIFIED
  • addSymbol
  • Parameter

    Specificable Setting Value

    data

    -

    type

    • Printer.SYMBOL_PDF417_STANDARD
    • Printer.SYMBOL_PDF417_TRUNCATED
    • Printer.SYMBOL_QRCODE_MODEL_1
    • Printer.SYMBOL_QRCODE_MODEL_2
    • Printer.SYMBOL_MAXICODE_MODE_2
    • Printer.SYMBOL_MAXICODE_MODE_3
    • Printer.SYMBOL_MAXICODE_MODE_4
    • Printer.SYMBOL_MAXICODE_MODE_5
    • Printer.SYMBOL_MAXICODE_MODE_6
    • Printer.SYMBOL_GS1_DATABAR_STACKED
    • Printer.SYMBOL_GS1_DATABAR_STACKED_
      OMNIDIRECTIONAL
    • Printer.SYMBOL_GS1_DATABAR_EXPANDED_STACKED
    • Printer.SYMBOL_AZTECCODE_FULLRANGE
    • Printer.SYMBOL_AZTECCODE_COMPACT
    • Printer.SYMBOL_DATAMATRIX_SQUARE
    • Printer.SYMBOL_DATAMATRIX_RECTANGLE_8
    • Printer.SYMBOL_DATAMATRIX_RECTANGLE_12
    • Printer.SYMBOL_DATAMATRIX_RECTANGLE_16

    level

    • Printer.LEVEL_0
    • Printer.LEVEL_1
    • Printer.LEVEL_2
    • Printer.LEVEL_3
    • Printer.LEVEL_4
    • Printer.LEVEL_5
    • Printer.LEVEL_6
    • Printer.LEVEL_7
    • Printer.LEVEL_8
    • Printer.LEVEL_L
    • Printer.LEVEL_M
    • Printer.LEVEL_Q
    • Printer.LEVEL_H
    • Integer from 5 to 95
    • Printer. PARAM_DEFAULT
    • Printer.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

    • Printer.LINE_THIN
    • Printer.LINE_MEDIUM
    • Printer.LINE_THICK
    • Printer.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

    lineStyle

    • Printer.LINE_THIN
    • Printer.LINE_MEDIUM
    • Printer.LINE_THICK
    • Printer.PARAM_DEFAULT
  • addCut
  • Parameter

    Specificable Setting Value

    type

    • Printer.CUT_FEED
    • Printer.CUT_NO_FEED
    • Printer.PARAM_DEFAULT
  • addSound
  • Parameter

    Specificable Setting Value

    pattern

    • Printer.PATTERN_NONE
    • Printer.PATTERN_1
    • Printer.PATTERN_2
    • Printer.PATTERN_3
    • Printer.PATTERN_4
    • Printer.PATTERN_5
    • Printer.PATTERN_6
    • Printer.PATTERN_7
    • Printer.PATTERN_8
    • Printer.PATTERN_9
    • Printer.PATTERN_10
    • Printer.PARAM_DEFAULT

    repeat

    • 1 to 255
    • Printer.PARAM_DEFAULT

    cycle

    • 1000 to 25500
    • Printer.PARAM_DEFAULT
  • addFeedPosition
  • Parameter

    Specificable Setting Value

    position

    • Printer.FEED_CUTTING
    • Printer.FEED_CURRENT_TOF
    • Printer.FEED_NEXT_TOF
  • addLayout
  • Parameter

    Specificable Setting Value

    type

    • Printer.LAYOUT_RECEIPT
    • Printer.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
    • Printer.PARAM_DEFAULT

    type

    • Printer.MaintenanceCounter.PaperFeed

    listener

    -

  • resetMaintenanceCounter
  • Parameter

    Specificable Setting Value

    timeout

    • Integer from 5000 to 600000
    • Printer.PARAM_DEFAULT

    type

    • Printer.MaintenanceCounter.PaperFeed

    listener

    -

  • getPrinterSetting
  • Parameter

    Specificable Setting Value

    timeout

    • Integer from 5000 to 600000
    • Printer.PARAM_DEFAULT

    type

    • Printer.Setting.PrintDensity
    • Printer.Setting.PrintSpeed

    listener

    -

  • setPrinterSetting
  • Parameter

    Specificable Setting Value

    timeout

    • Integer from 5000 to 600000
    • Printer.PARAM_DEFAULT

    list

    -

    type

    • Printer.Setting.PrintDensity
    • Printer.Setting.PrintSpeed

    value

    • Printer.Setting.PrintDensity70
    • Printer.Setting.PrintDensity75
    • Printer.Setting.PrintDensity80
    • Printer.Setting.PrintDensity85
    • Printer.Setting.PrintDensity90
    • Printer.Setting.PrintDensity95
    • Printer.Setting.PrintDensity100
    • Printer.Setting.PrintDensity105
    • Printer.Setting.PrintDensity110
    • Printer.Setting.PrintDensity115
    • Printer.Setting.PrintDensity120
    • Printer.Setting.PrintDensity125
    • Printer.Setting.PrintDensity130
    • Printer.Setting.PrintSpeed1
    • Printer.Setting.PrintSpeed2
    • Printer.Setting.PrintSpeed3
    • Printer.Setting.PrintSpeed4
    • Printer.Setting.PrintSpeed5
    • Printer.Setting.PrintSpeed6
    • Printer.Setting.PrintSpeed7
    • Printer.Setting.PrintSpeed8
    • Printer.Setting.PrintSpeed9
    • Printer.Setting.PrintSpeed10

    listener

    -

 

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 Android

Jump to the top