PDFsharp is the Open Source library for creating and modifying PDF documents using .NET. It has an easy-to-use API that allows developers to generate or modify PDF files programmatically. PDFsharp can be used for various applications, including creating reports, invoices, and other types of documents. This package does not depend on Windows and can be used on any .NET compatible platform including Linux and macOS. See https://docs.pdfsharp.net for details.


Keywords
PDF, PDFsharp, creation, pdf-files, pdf-generation
License
MIT
Install
Install-Package PDFsharp -Version 6.1.0-preview-2

Documentation

PDFsharp & MigraDoc 6

Version 6.1.0-preview-2
Published 2024-03-21

This is a preview version of the PDFsharp project, the main project of PDFsharp & MigraDoc 6 with updates for C# 12 and .NET 6.

PDFsharp: Copyright (c) 2005-2024 empira Software GmbH, Troisdorf (Cologne Area), Germany MigraDoc: Copyright (c) 2001-2024 empira Software GmbH, Troisdorf (Cologne Area), Germany Published Open Source under the MIT License

For more information see docs.pdfsharp.net

Read this FIRST

Project documentation can be found on our DOCS site: https://docs.pdfsharp.net.

Note: PowerShell 7 is required to execute the PowerShell scripts that come with PDFsharp.

Download assets first

Assets like bitmaps, fonts, or PDF files are not part of the repository anymore. You must download them before compiling the solution for the first time. Use download-assets.ps1 in the dev folder to create assets folder required for some unit tests and needed by some projects.

Execute

.\dev\download-assets.ps1

Build the solution

dotnet build should build the solution without any warnings or errors.

  • You need the latest .NET SDK version installed
  • If you got an exception from GitVersion.MsBuild let us know.
    You can set a tag to define a valid version, e.g.: git tag v6.1.0 to make it work.

Central package management

The solution uses central package management. Version numbers for all referenced packages are stored in file Directory.Packages.props in the src folder. When adding new packages, add the required version here.

Authors

PDFsharp and MigraDoc was mainly written by the following software developers. With support of a lot of community developers who found issues and fixed bugs.

Original PDFsharp developers

Stefan Lange
Niklas Schneider
David Stephensen

Original MigraDoc developers

Klaus Potzesny
Niklas Schneider
Stefan Lange

Current PDFsharp and MigraDoc developers

Stefan Lange
Thomas Hövel
Martin Ossendorf
Andreas Seifert