This service application contains an extension that converts HTML to PDF with different options:
1- Header and Footer
2- A4 size
Returning Output as Binary
Important note:
The free version of SelectPDF is generating up to 6 PDF pages, if you need unlimited number of pages you have to purchase a license from here and add an additional line of code at the beginning of the extension as follows:
SelectPdf.GlobalProperties.LicenseKey = "ABCDEFGHIJK";