Welcome back to shortleatner.com, in our last post we will see how to find first and last digit of a number without using any type of loop. today in this post we will see how to print a html view in a pdf format with the help of javascript. in the below code we add the bootstrap and jquery maxcdn file at head section of our html page, and in the body tag there is a div with having a id named pdf and there is paragraph inside the div section. when user hit on to the print button a javascript function (printDiv) is called and the div will shows into a pdf format. if you are looking for amazing html and bootstrap snippets than click on the below button for getting free amazing snippets.
4K
Login
8K
Page loader
6K
Signup,Login
Header,Navbar
3K
Team, Hover
Text Animation
Mail Template
9K
Login Form