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

Platform: WinForms |
Control: PDF |
Published Date: July 19, 2018 |
Last Revised Date: July 19, 2018

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.


2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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