Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do i make the knife cut the receipt in the end? #50

Open
smedapati opened this issue Sep 12, 2019 · 2 comments
Open

How do i make the knife cut the receipt in the end? #50

smedapati opened this issue Sep 12, 2019 · 2 comments

Comments

@smedapati
Copy link

How do i make the knife cut the receipt in the end?

@mitchelson
Copy link

mitchelson commented Oct 6, 2020

install base64-js
yarn add base64-js
and

import base64 from "base64-js";

async function print(){
  var cutpaper = [0x1d, 0x56, 0x41, 0x00];
  var cutPaperStr = base64.fromByteArray(cutpaper);
  try{
     ...
     await SunmiInnerPrinter.sendRAWData(cutPaperStr);
  }
}

@jeffreyvanhees
Copy link

jeffreyvanhees commented Jan 29, 2022

Please note that not all printers have a cutting ability

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants