Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

320
Vistas
Electron Pos Printer prints empty receipt

I am using this library Electron Pos Printer, and I have made a small batch of code. I have successfully connected my POS thermal printer, but when I send a command to print, it only "prints" a small amount of blank paper. Any ideas on fixing this, or maybe a recommendation for some other library?

let printerName = "myprinter";
let widthPage = "155";
const data = [
    {
        type: "text", // 'text' | 'barCode' | 'qrCode' | 'image' | 'table
        value: "This is sample print job",
        style: `text-align:center;font-size:16px;`,
    },
    {
        type: "qrCode",
        value: "https://github.com/fssonca",
        height: 55,
        width: 55,
        style: "margin-left:50px",
    },
];
PosPrinter.print(data, {
    preview: false, // Preview in window or print
    width: widthPage, //  width of content body
    margin: "0 0 0 0", // margin of content body
    copies: 1, // Number of copies to print
    printerName: printerName, // printerName: string, check it at webContent.getPrinters()
    timeOutPerLine: 400,
    silent: true,
}).catch((err) => console.log(err));
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda