browser shut html to pdf code example Example: html to pdf html2pdf.com is a great resource, web-based converter, super simple to use also.