PDFsharp is a .NET library for processing PDF files. You create PDF pages using drawing routines known from GDI+. Almost anything that can be done with GDI+ will also work with PDFsharp.
Only basic text layout is supported by PDFsharp, and page breaks are not created automatically. The same drawing routines can be used for screen, PDF, or meta files.
This is free and open source software.
Key Features
- Creates PDF documents on the fly from any .NET language.
- Easy to understand object model to compose documents.
- 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.
- Security:
- Encryption with 40/128 bit password length.
- Encryption with PDF 2.0 AES 256 bit.
- Document access permissions.
- Annotations.
- Embedded documents.
Website: docs.pdfsharp.net
Support: GitHub Code Repository
Developer: empira Software GmbH
License: MIT License
PDFKit is written in JavaScript. Learn JavaScript with our recommended free books and free tutorials.
Related Software
| PDF Development Libraries | |
|---|---|
| PDFBox | Create, render, print, split, merge, alter, verify and extract text and metadata |
| TCPDF | PHP class for generating PDF documents |
| Poppler | Library for rendering PDF files, and examining or modifying their structure |
| PDFKit | PDF document generation library for Node and the browser |
| pdfcpu | PDF processing library |
| Apache FOP | Print formatter driven by XSL formatting objects |
| QPDF | Library and programs that inspect and manipulate the structure of PDF files |
| PoDoFo | Parse PDF files and modify their contents into memory |
| OpenPDF | Library for creating and editing PDF files; fork of iText |
| xhtml2pdf | HTML to PDF converter using Python |
| libHaru | Library for generating PDFs |
| CapyPDF | Fully color managed PDF generation library |
| pdf-lib | Create and modify PDF documents in a JavaScript environment |
| PDFio | PDF read/write library |
| PDFsharp | .NET library for processing PDF files |
| JasperReports | Reporting engine written in Java |
| CamlPDF | OCaml library for reading, writing and modifying PDF files |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

