Synercoding.FileFormats.Pdf 1.0.0-alpha022

This is a prerelease version of Synercoding.FileFormats.Pdf.
dotnet add package Synercoding.FileFormats.Pdf --version 1.0.0-alpha022
                    
NuGet\Install-Package Synercoding.FileFormats.Pdf -Version 1.0.0-alpha022
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Synercoding.FileFormats.Pdf" Version="1.0.0-alpha022" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Synercoding.FileFormats.Pdf" Version="1.0.0-alpha022" />
                    
Directory.Packages.props
<PackageReference Include="Synercoding.FileFormats.Pdf" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Synercoding.FileFormats.Pdf --version 1.0.0-alpha022
                    
#r "nuget: Synercoding.FileFormats.Pdf, 1.0.0-alpha022"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Synercoding.FileFormats.Pdf@1.0.0-alpha022
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Synercoding.FileFormats.Pdf&version=1.0.0-alpha022&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Synercoding.FileFormats.Pdf&version=1.0.0-alpha022&prerelease
                    
Install as a Cake Tool

FileFormats.Pdf

NuGet

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:

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 38 2/1/2026
1.0.0-alpha020 231 5/27/2025
1.0.0-alpha019 116 2/13/2025
1.0.0-alpha018 789 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 258 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 892 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 570 3/11/2019
1.0.0-alpha002 1,091 3/6/2019
1.0.0-alpha001 564 3/6/2019

Complete rewrite to add support for fonts, and with an read/edit future in mind.