We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Remove header and footer from first page during HTML to PDF conversion

Removing the Header and Footer from the first page of the PDF document during the HTML to PDF conversion can be achieved by using the below approach.

Step-1: Convert the HTML to PDF without the Header and Footer with the reduced PDF page size.

Step-2: Get the first page of the converter PDF as template and draw it in another PDF document.

Step-3: Add the Header and Footer to the new PDF document by using Sections.

Step-4: Draw the remaining pages of the converted PDF document as template.

A simple working console sample is attached below.


Article ID: Published Date: Last Revised Date: Platform: Control:
8975 07/19/2018 07/19/2018 WinForms PDF
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Please sign in to access our KB

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon