Javascript-html-to-pdf All the details are in example.html. The script in example.html can generate pdf from current html page even with svg in the page. Multi pages pdf is well supported.