JavaScript was a language used for basic things like form validations. Now the javascript can do so many thing which was only possible by server side technologies such as php and ASP.net.
With New HTML5 API’s Canvas, svg, video, audio and etc… we can do things lot easier now than before. Ok now why am I telling all this now. Because in this tutorial we going to see how to convert an html page to a pdf document using JavaScript.
DEMO DOWNLOAD
To do it I’m going to use https://github.com/MrRio/jsPDF andhttps://github.com/niklasvh/html2canvas
We...