How to remove header and footer from print pdf in html?
I am using window.print() for printing page, but I got header and footer contains page title, page url, page number and date. How to remove them from the PDF?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
I have removed header & footer from print pdf using the below css.
<style type="text/css" media="print">@page
{
size:8.5in 11in;
margin: 0
}
</style>