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

106
Vistas
Puppeteer PDF Generation with Header and Footer on top of the PDF result

I am facing a problem putting the header/footer HTML on the puppeteer pdf result like floating instead of margins,

Is this even possible to make colored PDF with no white header and footer?

<div style="border-top: solid 1px #bbb; width: 100%; font-size: 9px;
   padding: 5px 5px 0; color: #bbb; position: relative;">
   <div style="position: absolute; left: 5px; top: 5px;">
      <span class="">
         <script>
            document.write(new Date().toLocaleTimeString('en-il',{
                year: 'numeric',
                month: 'numeric',
                day: 'numeric'
            })
            )
         </script>
      </span>
   </div>
   <div style="position: absolute; left: 250px; top: 5px;"><span>Generated By xxx</span></div>
   <div style="position: absolute; right: 5px; top: 5px;"><span class="pageNumber"></span>/<span class="totalPages"></span></div>
</div>

I am using bottom margin of 20.

TIA

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