Overview of PDFsharp Core
masterCORE constant and serves as the container for all source code within the repository, including code that may not be included in every specific build configuration.repository·master·Indexed 19 days ago
https://github.com/empira/pdfsharpPDFsharp is a high-performance .NET library for creating and manipulating PDF documents, complemented by MigraDoc, which provides a high-level object model for document creation. Version 7.0.0 Preview 1 supports C# 12 and .NET 8, 9, and 10. The library offers cross-platform Core packages for Linux and macOS, as well as Windows-only GDI and WPF packages for extended image format support. Additional assemblies include PDFsharp.BarCode for barcode drawing and PDFsharp.Cryptography for digital signatures.
CORE constant and serves as the container for all source code within the repository, including code that may not be included in every specific build configuration.The PdfSharp.Quality.Ghostscript project provides functionality that leverages Ghostscript (from Artifex Software Inc.) to perform specific tasks, primarily converting PDF files into PNG images.
Important Note: This project is used exclusively for testing and quality control of PDFsharp during development. PDFsharp itself does not use or depend on Ghostscript for its core operations.
PDFsharp is an open-source .NET library designed for creating and modifying PDF documents. It provides a programmatic API for generating or editing PDF files, making it suitable for tasks such as creating reports, invoices, and other document types.
Key characteristics:
MigraDoc is a .NET library designed for creating documents like PDF and RTF using a high-level object model. It provides an intuitive API for managing document elements such as text formatting, tables, and images. It is commonly used for generating reports, invoices, and other structured documents.
Platform Requirement: This specific package relies on Windows Presentation Foundation (WPF) and is restricted to Windows only environments.
PDFsharp is an open-source .NET library designed for creating and modifying PDF documents programmatically. It provides an API for generating or editing PDF files, which is useful for applications such as creating reports, invoices, and other document types.
Important Platform Restriction: The GDI build of PDFsharp relies on Windows Forms (GDI+) and is restricted to Windows-only environments.
The 6.2.0 Preview 1 release introduced several major capabilities:
.NET 8 (net8.0) and a downgrade of .NET Framework references to 4.6.2 (net462).The PDFsharp.Cryptography assembly provides classes for signing PDF documents with digital signatures using the PDFsharp default signer.
This is a separate assembly designed to decouple digital signature functionality from the core PDFsharp.dll. By using this package, you can include signature capabilities in your project without forcing a dependency on System.Security.Cryptography.Pkcs in the main PDFsharp.dll for projects that do not require digital signatures.
Version 6.3 introduces several core improvements and new components:
PdfAManager for enhanced PDF/A capabilities.FileManager for managing embedded files.DateTimeOffset internally to resolve discrepancies between .NET and .NET Framework.Name class with improved UTF-8 encoding, delimiter escaping, and empty name handling.PDFsharp.Imaging assembly is responsible for handling the importing and exporting of bitmap images within the PDFsharp ecosystem. It serves as the underlying imaging provider for both the legacy PDFsharp XGraphics and the newer PDFsharp Graphics engines.PdfSharp.WPFonts assembly provides a set of 6 small fonts that can be used as a quickstart solution when no other fonts are available in the environment. These fonts are a subset of the SegoeUI font family and were originally derived from an early Windows Phone SDK.PDFsharp version 6.2.4 introduces several fixes and improvements:
/Length entry is now always added to encrypted PDF files, even when optional according to PDF specifications. This ensures compatibility with PDF viewers like Microsoft Edge that may fail to open encrypted files without this entry.0xff 0x00 combination) to prevent exceptions.CArray) are now saved with spaces for better formatting.DecodeParms were specified as an indirect object.