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

319
Vistas
pdfkit how to create a pdf ticket size for pos - with width of 80mm but no height, to allow a auto resize for height

i am trying to use pdfkit to create a ticket for pos printer with a paper width of 80mm. The problem is that the height is variable and not set (like in html). Can this be done or i am thinking wrongly?

const doc = new PDF({
                size: [80, "auto"??] // See other page sizes here: https://github.com/devongovett/pdfkit/blob/d95b826475dd325fb29ef007a9c1bf7a527e9808/lib/page.coffee#L69
                info: {
                    Title:  "blabla",
                    Author: "moi"
                }, margins: {
                    top: 10,
                    bottom: 10,
                    left: 10,
                    right: 10
                });

i do not find a way to do this in the documentation. Any suggestions? Thank you.

EDIT: I found this Epson ePOS SDK for JavaScript that i am going to test it.

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