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

364
Views
Window.print() -> save as pdf in just one click

I need to print a modal that contains a table as a pdf. The requirement is that if user clicks on the button named Save pdf, the table will be converted into a pdf and be saved. I have tried JsPDF and html2pdf but these plugins do not allow custom CSS, so they do not resemble the same table. One solution was to write a print screen code where I can append desired HTML and CSS but there is this extra step of selecting PDF and clicking on the print button. Is there any way I can bypass these steps and just get the file downloaded after a click?

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!