Synercoding.FileFormats.Pdf
1.0.0-alpha022
dotnet add package Synercoding.FileFormats.Pdf --version 1.0.0-alpha022
NuGet\Install-Package Synercoding.FileFormats.Pdf -Version 1.0.0-alpha022
<PackageReference Include="Synercoding.FileFormats.Pdf" Version="1.0.0-alpha022" />
<PackageVersion Include="Synercoding.FileFormats.Pdf" Version="1.0.0-alpha022" />
<PackageReference Include="Synercoding.FileFormats.Pdf" />
paket add Synercoding.FileFormats.Pdf --version 1.0.0-alpha022
#r "nuget: Synercoding.FileFormats.Pdf, 1.0.0-alpha022"
#:package Synercoding.FileFormats.Pdf@1.0.0-alpha022
#addin nuget:?package=Synercoding.FileFormats.Pdf&version=1.0.0-alpha022&prerelease
#tool nuget:?package=Synercoding.FileFormats.Pdf&version=1.0.0-alpha022&prerelease
FileFormats.Pdf
This project was created to enable PDF creation on .NET. Multiple libraries did not suit my purpose of working on .NET Core & .NET Framework the same way. Some alternatives supported settings the different boxes (Media, Crop, Bleed & Trim) but did not fully support images on all platforms. Others supported images but not the different boxes, and again others did not work at all on .NET Core.
Because of those reasons this library was created. Since then this project has evolved to keep current with the latest versions. Currently targeting .NET 8.0 and .NET 10.0.
License
This project is licensed under a dual license. See LICENSE for full information. It comes down to: Apache License 2.0 for small and non-profit companies, or contact me for other options.
Specifications used
This library was created using the specifications lay out in "ISO 32000-2:2020 (PDF 2.0)".
Remarks
Unlike most PDF libraries this library does not create the entire PDF model in memory before writing the PDF to a (file)stream.
To place the images this library makes use of SixLabors/ImageSharp. All images that are placed in the PDF will be saved internally as a JPG file. Except for transparent images, where the color data is saved in jpg format, and the alpha channel is saved as color data compressed with flate encoding.
Sample program images
The sample project called Synercoding.FileFormats.Pdf.ConsoleTester uses multiple images. Those images were taken from:
- Pexels.com and are licensed under the Pexels License
- FreePngImg.com and are licensed under Creative Commons (CC BY-NC 4.0)
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- SixLabors.ImageSharp (>= 3.1.12)
- Synercoding.Primitives (>= 1.0.0-rc11)
-
net8.0
- SixLabors.ImageSharp (>= 3.1.12)
- Synercoding.Primitives (>= 1.0.0-rc11)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-alpha022 | 40 | 2/1/2026 |
| 1.0.0-alpha020 | 232 | 5/27/2025 |
| 1.0.0-alpha019 | 116 | 2/13/2025 |
| 1.0.0-alpha018 | 795 | 11/21/2024 |
| 1.0.0-alpha017 | 109 | 11/20/2024 |
| 1.0.0-alpha016 | 103 | 11/19/2024 |
| 1.0.0-alpha015 | 180 | 9/19/2023 |
| 1.0.0-alpha014 | 260 | 1/26/2023 |
| 1.0.0-alpha013 | 259 | 1/19/2023 |
| 1.0.0-alpha012 | 216 | 1/18/2023 |
| 1.0.0-alpha011 | 3,364 | 8/24/2022 |
| 1.0.0-alpha010 | 943 | 2/25/2022 |
| 1.0.0-alpha009 | 893 | 3/6/2021 |
| 1.0.0-alpha008 | 462 | 12/5/2020 |
| 1.0.0-alpha007 | 589 | 7/10/2020 |
| 1.0.0-alpha006 | 449 | 7/8/2020 |
| 1.0.0-alpha005 | 630 | 4/22/2020 |
| 1.0.0-alpha004 | 562 | 3/17/2020 |
| 1.0.0-alpha003 | 571 | 3/11/2019 |
| 1.0.0-alpha002 | 1,093 | 3/6/2019 |
| 1.0.0-alpha001 | 565 | 3/6/2019 |
Complete rewrite to add support for fonts, and with an read/edit future in mind.