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

196
Vistas
Show a group of pdf in such way that the user can scroll as if it where one in a similar way to docusign

I want to show on my web page a group of pdfs inside a div, in such a way that the width of the displayed pdf is always the same size as the div, In the screen you should only what the pdf has written in it and not the borders or the toolbar. Also I need the user to scroll over the parent div to go through and read all the pdfs, that is, there should only be one scroller and the pdfs should be shown one below the other. I need it this way because afterwards I want to detect when the user scrolls to the bottom of the div, through all pdfs.

I managed to get the number of pages in the pdf with pdf lib, and then set the minHeight to the pages multiplied by some number that will give me the height I need for a carta sized pdf. But this doesn't solve the width problem and also has difficulties when I get other formats in the pdf.

{
   data && data !== [] && !loading
    ? data.map((contract, index) => {
       return (
          <div key={index} 
              style={{ position: 'relative', height: `${contract.pages}px` }} >
              <object 
                  height='100vh' 
                  width='100%' 
                  data={`${contract.url}#toolbar=0`} 
                  type='application/pdf' 
                  frameBorder='0' scrolling='no' 
                  style={{ minHeight: `${contract.pages}px`, overflow: 'hidden', scrolling: 'no' }} 
                 seamless='seamless' />
             </div>
                )
              })
              : <ContractLoader />
  }

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