Search Results for

    Show / Hide Table of Contents

    PDFsharp content

    Version 6.1.0

    In this article

    • Introduction

    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.

    • Edit this page
    In this article
    Generated by DocFX  |   Privacy policy  |   Legal notice
    Back to top