Synercoding.FileFormats.Pdf 1.0.0-alpha025

This is a prerelease version of Synercoding.FileFormats.Pdf.
dotnet add package Synercoding.FileFormats.Pdf --version 1.0.0-alpha025
                    
NuGet\Install-Package Synercoding.FileFormats.Pdf -Version 1.0.0-alpha025
                    
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-alpha025" />
                    
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-alpha025" />
                    
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-alpha025
                    
#r "nuget: Synercoding.FileFormats.Pdf, 1.0.0-alpha025"
                    
#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-alpha025
                    
#: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-alpha025&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Synercoding.FileFormats.Pdf&version=1.0.0-alpha025&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-alpha025 66 10/5/2026
1.0.0-alpha024 95 7/23/2026
1.0.0-alpha023 221 4/23/2026
1.0.0-alpha022 141 2/1/2026
1.0.0-alpha020 1,015 5/27/2025
1.0.0-alpha019 157 2/13/2025
1.0.0-alpha018 1,410 11/21/2024
1.0.0-alpha017 152 11/20/2024
1.0.0-alpha016 150 11/19/2024
1.0.0-alpha015 220 9/19/2023
1.0.0-alpha014 315 1/26/2023
1.0.0-alpha013 314 1/19/2023
1.0.0-alpha012 251 1/18/2023
1.0.0-alpha011 3,418 8/24/2022
1.0.0-alpha010 986 2/25/2022
1.0.0-alpha009 939 3/6/2021
1.0.0-alpha008 506 12/5/2020
1.0.0-alpha007 637 7/10/2020
1.0.0-alpha006 498 7/8/2020
Loading failed

Fixed a broken constructor. Fixed FlateDecode streams missing the zlib Adler-32 trailer, which caused "incorrect data check" warnings in Ghostscript. Subset fonts now get the required six-letter tag prefix (e.g. ABCDEF+FontName). Added OverprintMode (OPM) support to the extended graphics state.