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

169
Vistas
Print.JS - set default print settings

I am trying to implement a print PDF option in an application. I found print.js and looks like this may help. However, I want to set default print options to make sure it prints to the correct scale (i.e.. 100%). Can print.js do this? If not, does anyone have a suggestion on how to accomplish this?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Not sure if this can be achieved straight forward or not. However there is a workaround for which you need to follow these steps:

  1. Convert your pdf files in base64 format
  2. Convert your base64 pdf to base64 png using pdf.js
  3. Render base64 pngs as html in img tag where you application related styles like margin, scales, etc. can be applied
  4. Print your html content with print.js

You can check this article solving similar type of problem https://medium.com/@vicky.sharma8127344/print-single-or-multiple-files-with-print-js-and-pdf-js-ab9c8347a309

about 4 years ago · Juan Pablo Isaza Denunciar
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