0

I am using this code for upload a CSV file to html table.

Fiddle

Now, I have to download the table as PDF format, when the button click.

How can I do this using JS or PHP or Any?, But how to define the php file in html?

Someone help me?

Pandu
  • 159
  • 1
  • 12

1 Answers1

0

This won't be easy because this is not the thing what JS is used to do... Still you can try the following:

  1. Try jsPDF to generate the PDF file
  2. Show save dialog, there are many solutions for that, e.g. try this one Javascript: Create and save file
Community
  • 1
  • 1
smnbbrv
  • 23,502
  • 9
  • 78
  • 109