Features of PDFsharp Library
Version 6.1.0
In this article
This article gives you a detailed overview of the PDFsharp Library 6 features.
Key features
- Creates PDF documents on the fly from any .NET language
- Easy to understand object model to compose documents
- On Windows ... One source code for drawing on a PDF page as well as in a window or on the printer
- Modify, merge, and split existing PDF files
- Images with transparency (color mask, monochrome mask, alpha mask)
- Written entirely in C# and available for .NET Framework 4.7.2 / Standard 2.0 and .NET 6
- Available on GitHub as Open source library
- Choose between 3 build flavors: Core build for all platforms or Windows specific for GDI+ or WPF
Graphics
- Lines, polylines, arcs, Bézier splines, canonical splines, rectangles, rounded rectangles, ellipses, polygons, pies, closed splines, paths
- The graphical objects follow the design pattern of System.Drawing. With one set of functions you can draw on a PDF page as well as on a System.Drawing.Graphics object. Your application can render its output in a window, on the printer, or in a PDF document.
- XPdfForm objects as templates. Use XGraphics class to create PDF form objects.
- RGB, CMYK, and gray scale colors with transparency
- Pens and brushes for drawing and filling
- GDI+ like predefined colors, pens, and brushes
- Matrix transformations
- BMP, PNG, GIF, TIFF, and JPEG images
- Image masks and transparency
- Form XObjects
- Clipping through graphical path
- Linear gradient brushes
Text
- TextFormatter class for simple text layout
- TrueType fonts / OpenType fonts with TrueType outline
- Matrix transformations
- Converting glyphs to a graphical path
- ANSI and Unicode based glyph index encoding
- TextAnnotations, Rubber stamp annotations
Accessibility
- Support for PDFsharp/UA
Security
- Encryption with 40/128 bit password length
- Encryption with PDF 2.0 AES 256 bit
- Document access permissions
PDF specific features
- Annotations
- Embedded documents
Older versions
See Information about PDFsharp 1.5
See also NuGet packages · Repositories · Build PDFsharp