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:|