Here is the code we’re using for converting HTML to PDF.
public static byte[] ConvertHtmlToPdfWithPageSize(string html, float leftMargin, float rightMargin,
float topMargin, float bottomMargin, float footerH…...""))) { using (Document document = new Document(stream, new HtmlLoadOptions()...rightMargin, topMargin) } })) { document.Flatten(); // Add footer on...