Table Headers

For HTML containing a table that will span more than one page, use the CssMediaType.Print

Renderer.RenderingOptions.CssMediaType = IronPdf.Rendering.PdfCssMediaType.Print;

Using CssMediaType.Screen instructs Chrome to print the headers only once.

Renderer.RenderingOptions.CssMediaType = IronPdf.Rendering.PdfCssMediaType.Screen;

More table header code examples: https://ironpdf.com/docs/questions/html-to-pdf-page-breaks/#page-breaks-and-tables