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

186
Vistas
Javascript: Detect page breaks in printed HTML

I would like to detect page breaks in printed HTML with javascript.

I've found many information on how to insert page breaks with CSS. My goal is, however, not modifying anything, just finding out where each page ends (coordinates in pixel, or a reference to the first or last object on a given page).

I've read the description of the pageBreakAfter property, however, it is a kind of policy, whether there can / should be a page break considering the amount of stuff already written on the page. I would like to know where actual page breaks are.

(The purpose of this detection is that based on its result I will fine-tune margins and font sizes to optimize the layout.)

Any ideas?

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