Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

183
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda