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

194
Visualizações
Add a dynamic content to a same place in print in html

I use the following code to append a dynamic content to printing the content to an A4 paper in html.

  $('#result_body').append(

                      '<div id=result_signature'+count+' class="footer" 
                       style="position: fixed;bottom:20px; right:20px">'+
                      '<p>'+data[count].signature+'</p>'+

                      '<br>'+

                      '</div>'
                      )
                      
                      $('#result_body').append( '<div class="pagebreak"> </div>')

My problem is, when I run this, If there are two different signatures, it prints both signatures in all pages and if there is only one signature it prints only one (which is correct) in all pages. But if i set the position to relative, it prints the signatures correctly, but not to the bottom of the page. I used the fixed position as i need to print the signatures at the bottom of the every page, regardless of the content is extending to multiple pages.

Is there any way to append the signatures to the bottom of the printing pages other than using the fixed position?

(Both signatures look same for demo purpose)

When position is relative

enter image description here

enter image description here

When position is Fixed

enter image description here

All I want is the both signature at bottom correctly.

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