class EposCut
extends XMLElement

A <cut> element.

Tells the printer to cut the document.

Examples

Cut the feed after printing a hello world!

new EposPrint().append(
  new EposText('Hello, World!\n')
  new EposCut(),
)

Cut the feed after printing a customer receipt and a ticket

new EposPrint().append(
  new EposText(`
...some text here...
-----------------------
* Customer Receipt *
Payment Method:
Catgirlcard contactless
************1234
-----------------------
...some text here...
`)
    .align(EposAlign.Center()),
  new EposCut(),
  new EposText(`
...some text here...
Your Product:
`)
    .align(EposAlign.Center()),
  new EposFeed().units(30),
  new EposAztec(
    new Uint8Array(ticketData)
  ),
  new EposCut(),
)

Constructors

new
EposCut(type?: EposCutType)

Methods

toString(): string