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

788
Vistas
How to generate customize table pdf using jspdf

I am working on react with jsPDF, to export a table of data to pdf in my react application. In my component, I am showing 7 columns of data plus one action column which has action buttons.

I have a download report button on top, now I am trying to export the table using jsPdf. while exporting pdf I want to remove the action column and wanted to add an image column at last(or replace action with image) and add specific data's image

I am showing the table below, enter image description here

When I export a pdf it is coming like the below, I wanted to rename the last column and add the specific data's image on each row enter image description here

I have tried like below, not able to replace it.

downloadRecords = async (id: string) => {
    const { type } = this.props;
    const doc = new jsPDF({
        orientation: "landscape"
      }
    )
    const title = `${type}`;
    
    doc.text(title, 14, 10)
    autoTable(doc, {
      html: '#mytable',
      bodyStyles:{minCellHeight: 20},
      startY: 20
    })
    doc.save(`${id}.pdf`)
  }

Can someone please suggest how can I replace the last column and add an image for that,

Thanks in advance.

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