Neophile
Neophile

Reputation: 5870

Bootstrap Modal - Save as PDF

I have a bootstrap modal on my website and I would like to extract the Modal body to save it as a PDF. It basically contains a table that is dynamically calculated using javascript and I would like to save this information in a PDF file so that users can download it. What is the best and efficient way to achieve this? Kindly let me know.enter image description here

Cheers.

Upvotes: 0

Views: 3304

Answers (1)

Izzy
Izzy

Reputation: 6866

The best way to go about this would be to use an existing library which already takes care of most of the stuff for you. However it all depends on whether you want to do it on the server side or client. If you want to achieve this on server side then I suggest you look into iText and if you want to achieve this on client side then you can look into jsPDF. I hope this answers your question

Upvotes: 1

Related Questions