Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 16, 2021 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/1ca66036bb47ed3c8a405afd83f20d22 to your computer and use it in GitHub Desktop.
Save parzibyte/1ca66036bb47ed3c8a405afd83f20d22 to your computer and use it in GitHub Desktop.
let impresora = new Impresora(RUTA_API);
impresora.setFontSize(1, 1);
impresora.write(`Tratando de imprimir en ${nombreImpresora}
`);
impresora.write(mensaje);
impresora.cut();
impresora.cutPartial(); // Pongo este y también cut porque en ocasiones no funciona con cut, solo con cutPartial
impresora.imprimirEnImpresora(nombreImpresora)
.then(valor => {
loguear("Al imprimir: " + valor);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment