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.
Unfortunately, activation email could not send to your email. Please try again.

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.

http://www.syncfusion.com/downloads/support/directtrac/210583/ze/HtmlToPDF_NoHeaderFirstPage1598355145

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

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.