PDFsharp content
Version 6.1.0
In this article
This article describes how to mix PDFsharp with MigraDoc content.
Introduction
In some cases, it can be useful to mix PDFsharp and MigraDoc content. This is of course only an option for rendering PDF files as PDFsharp can’t render RTF files. As shown in Document / Rendering, the PdfDocumentRenderer instance renders the MigraDoc document to a PdfDocument object before saving it. So, you can render your MigraDoc document, add some PDFsharp content to the resulting PDFsharp document, and then save it.
Furthermore, you can create the PdfDocument in your code, add each page and call the MigraDoc renderer to add the contents of that page. This allows you to modify each page and maybe add special headers or footers or draw watermarks.