0

I have a dynamic webpage written in JSP and servlet program where I enter data which gets stored in a database. The data stored is displayed as a table on another webpage on button click. I want my users to download the data on the page which displays the values, either as a PDF or as an excel page. How do I do it?

iamtheDanger
  • 35
  • 2
  • 3
  • 9
  • try this https://code.google.com/p/jspdf/ – agpt Dec 30 '14 at 08:32
  • Q1: Do you want to generate the PDF on the server or from within the browser? Note that jspdf is Javascript. Q2: Do you have PHP available on your server? Q3: What database are you using? – Tom Robinson Jan 04 '15 at 18:36

1 Answers1

0

Would you like to Try a plugin for Firefox

https://addons.mozilla.org/EN-uS/firefox/addon/web2pdf-converter/

Or have the data exported as CSV or PDF via PHP - this can then prompt user to save.

How to convert MySQL data from page into PDF

PHP code to convert a MySQL query to CSV

Community
  • 1
  • 1