Attach a Cover Page
Adding a cover page to your PDF can make it brandable and appealing to viewers. IronPDF is a seamless solution for adding cover pages to your PDF projects. IronPDF provides the ability to add a cover page without using any other programs and in just two simple lines of code.
In this example, we show you how to seamlessly attach a cover page to your render in IronPDF.
The C# method IronPdf.PdfDocument.Merge
allows us to add a cover page to a PDF, render them separately or merge them with the rest of the document.
You can create a cover page using the ChromePdfRenderer
class, and later on, use the Merge
function to embed the two PDFs and create a single new PDF. You can see a full extended tutorial on how to do this here.
The Renderer.RenderingOptions.FirstPageNumber
allows you to get the page numbers correct without printing numbers on the cover.