Search Results for

    Show / Hide Table of Contents

    Load a License in PDFsharp and MigraDoc projects

    Version 6.5.0 • Version 7.0.0

    To use PDFsharp and optionally MigraDoc you must load the free AGPL or a commercial license. To choose the license meeting your needs compare the conditions at https://pdfsharp.com/Pricing.

    Warning

    Without loading a license, you will get exceptions when using PDFsharp.

    Warning

    Keep in mind that after an Update of PDFsharp, your license could get invalid - depending on the supported versions of your license.

    Tip

    We recommend loading the license at the start of your program.
    This way you get an immediate exception for the case the loaded license is not valid.

    Load the AGPL license

    To load the free AGPL license, insert the following code:

    PdfSharpLicense.SetAgplLicense();
    

    Load a commercial license

    If you need a commercial license, contact us at https://pdfsharp.com/Pricing.
    You will get your license key, which you can load as follows:

    PdfSharpLicense.LoadLicense(YourLicenseCode);
    
    • Edit this page
    In this article
    Generated by DocFX  |   Privacy policy  |   Legal notice
    Back to top