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

ePOSDevice object

  • createDevice method
  • Parameter

    Specificable Setting Value

    deviceId

    • deviceId

    deviceType

    • DEVICE_TYPE_PRINTER

    options

    • crypto (Boolean)
    • buffer (Boolean)

    crypto

    • crypto (Boolean)

    callback

    -

Printer object

  • addTextLang method
  • Parameter

    Specificable Setting Value

    lang

    • "en" (default)
    • de
    • fr
    • it
    • es
    • ko
    • ko-kr
    • zh-hans
    • zh-cn
    • zh-hant
    • zh-tw
    • th
  • addTextStyle method
  • Parameter

    Specificable Setting Value

    reverse

    • true
    • false (default)
    • undefined

    ul

    • true
    • false (default)
    • undefined

    em

    • true
    • false (default)
    • undefined

    color

    • COLOR_1 (default)
    • undefined
  • addFeedPosition method
  • Parameter

    Specificable Setting Value

    pos

    • FEED_CUTTING
    • FEED_CURRENT_TOF
    • FEED_NEXT_TOF
  • addImage method
  • Parameter

    Specificable Setting Value

    context

    • context

    x

    • Integer from 0 to 65535

    y

    • Integer from 0 to 65535

    width

    • Integer from 0 to 65535

    height

    • Integer from 0 to 65535

    color

    • COLOR_1 (default)
    • undefined

    mode

    • MODE_MONO
    • undefined
  • addBarcode method
  • Parameter

    Specificable Setting Value

    data

    • String

    type

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

    hri

    • HRI_NONE (default)
    • HRI_ABOVE
    • HRI_BELOW
    • HRI_BOTH

    font

    • FONT_A (default)
    • FONT_B
    • FONT_C
    • FONT_D
    • FONT_E

    width

    • Integer from 2 to 6

    height

    • Integer from 1 to 255
  • addSymbol method
  • Parameter

    Specificable Setting Value

    data

    • String

    type

    • SYMBOL_PDF417_STANDARD
    • SYMBOL_PDF417_TRUNCATED
    • SYMBOL_QRCODE_MODEL_1
    • SYMBOL_QRCODE_MODEL_2
    • SYMBOL_MAXICODE_MODE_2
    • SYMBOL_MAXICODE_MODE_3
    • SYMBOL_MAXICODE_MODE_4
    • SYMBOL_MAXICODE_MODE_5
    • SYMBOL_MAXICODE_MODE_6
    • SYMBOL_GS1_DATABAR_STACKED
    • SYMBOL_GS1_DATABAR_STACKED_OMNIDIRECTIONAL
    • SYMBOL_GS1_DATABAR_EXPANDED_STACKED
    • SYMBOL_AZTECCODE_FULLRANGE
    • SYMBOL_AZTECCODE_COMPACT
    • SYMBOL_DATAMATRIX_SQUARE
    • SYMBOL_DATAMATRIX_RECTANGLE_8
    • SYMBOL_DATAMATRIX_RECTANGLE_12
    • SYMBOL_DATAMATRIX_RECTANGLE_16

    level

    • LEVEL_0
    • LEVEL_1
    • LEVEL_2
    • LEVEL_3
    • LEVEL_4
    • LEVEL_5
    • LEVEL_6
    • LEVEL_7
    • LEVEL_8
    • LEVEL_L
    • LEVEL_M
    • LEVEL_Q
    • LEVEL_H
    • Integer (5 to 95)
    • LEVEL_DEFAULT
  • addPageLine method
  • 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

    • LINE_THIN
    • LINE_MEDIUM
    • LINE_THICK
    • undefined
  • addPageRectangle method
  • 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

    • LINE_THIN
    • LINE_MEDIUM
    • LINE_THICK
    • undefined
  • addCut method
  • Parameter

    Specificable Setting Value

    type

    • CUT_NO_FEED
    • CUT_FEED
    • undefined
  • addSound method
  • Parameter

    Specificable Setting Value

    pattern

    • PATTERN_NONE
    • PATERN_1
    • PATERN_2
    • PATERN_3
    • PATERN_4
    • PATERN_5
    • PATERN_6
    • PATERN_7
    • PATERN_8
    • PATERN_9
    • PATERN_10
    • undefined

    repeat

    • 1 to 255
    • undefined

    cycle

    • 1000 to 25500
  • addLayout method
  • Parameter

    Specificable Setting Value

    type

    • LAYOUT_RECEIPT
    • LAYOUT_RECEIPT_BM

    width

    • 290 to 800

    height

    • Receipt
    • Receipt (with black mark)

    margin_top

    • Receipt
    • Receipt (with black mark)

    margin_bottom

    • Receipt
    • Receipt (with black mark)

    offset_cut

    • Receipt
    • Receipt (with black mark)

    offset_label

    • Receipt
    • Receipt (with black mark)
  • print method
  • Parameter

    Specificable Setting Value

    canvas

    • canvas

    cut

    • true
    • false
    • undefined

    mode

    • MODE_MONO
    • undefined

    printjobid

    • String
 

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 JavaScript

Jump to the top