Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

787
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!