Download card on submission


#1

Hi,

Just getting started with JavaScript and learning it from Tuts+. Was playing with it and have generated a simply card generator, have a look here Can we download the generated card onclick submit as a JPG/PDF file?


#2

Yes, I think it’s possible to export a HTML part of the page or all the HTML page to an image.

But from what I know it can’t be done easily, using javascript in codepen, you’ll have to use a server side language like php and eventually a ready-made library, like this one for instance (but there are more on the web): https://github.com/spatie/browsershot


#3

Thanks for your reply. I have got here https://app.abdurrehman.net/ but don’t have SSH access to the server as it’s shared hosting. How to install it here?


#4

Can I have some feedback on this please?