Search Results for

    Show / Hide Table of Contents

    Getting started with MigraDoc

    Version 6.1.0

    In this section

    • Learning the programming model
    • Sample source code
    • More samples
    • Getting support
    • Reporting bugs

    Learning the programming model

    With MigraDoc you can create complex documents just like you do it with Microsoft Word or other word processors - but automatically in your application. Use MigraDoc’s document object model to assemble your document by code.

    Check Document object model for a reference of the MigraDoc document object model to create and format documents.

    The MigraDoc source code has XML documentation for all public classes and methods and the IntelliSense of Visual Studio will show you the available methods with their documentation.

    You can also use the Grammar by Example tutorial to learn about the capabilities of MigraDoc. In Grammar by Example, the samples are written in MigraDoc Document Description Language (MDDDL), but you can mostly deduce the required C#, F#, or VB.NET code from it.

    Sample source code

    Sample code can be found on GitHub.

    For samples that are included with MigraDoc 6.x, see here:
    https://github.com/empira/PDFsharp.Samples/tree/master/src/samples/src/MigraDoc/src

    Two of these samples are explained in Topics / Start.

    More samples

    The PDFsharp forum has a board with sample code from members:
    https://forum.pdfsharp.net/viewforum.php?f=8

    These samples cover various topics and might help you solve your tasks.

    Getting support

    If you have specific questions, feel free to ask them at our peer support forum:
    https://forum.pdfsharp.net/

    Reporting bugs

    When reporting bugs, it is important for us to be able to replicate the issue.

    We created a sample project that uses the NuGet packages to help you create a minimal code sample that replicates the issue.

    Issue reporting

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