Soyuz.iTextSharp
3.8.0
dotnet add package Soyuz.iTextSharp --version 3.8.0
NuGet\Install-Package Soyuz.iTextSharp -Version 3.8.0
<PackageReference Include="Soyuz.iTextSharp" Version="3.8.0" />
<PackageVersion Include="Soyuz.iTextSharp" Version="3.8.0" />
<PackageReference Include="Soyuz.iTextSharp" />
paket add Soyuz.iTextSharp --version 3.8.0
#r "nuget: Soyuz.iTextSharp, 3.8.0"
#:package Soyuz.iTextSharp@3.8.0
#addin nuget:?package=Soyuz.iTextSharp&version=3.8.0
#tool nuget:?package=Soyuz.iTextSharp&version=3.8.0
Soyuz.iTextSharp
Soyuz.iTextSharp is a fork of iTextSharp.LGPLv2.Core, which in turn is an unofficial port of the last LGPL version of the iTextSharp (v4.1.6) to .NET Core.
I'm keeping this fork because the original author, for some reason, stopped accepting contributions (disabled issues and pull requests).
Install via NuGet
To install Soyuz.iTextSharp, run the following command in the Package Manager Console:
PM> Install-Package Soyuz.iTextSharp
You can also view the package page on NuGet.
Usage
FAQ
The pdf is created, but when I try to view it, it says that the document is in use by another process.
You should dispose the FileStream/MemoryStream explicitly. It won't be closed and disposed automatically at the end.
I can't find what would be the equivalent of the PdfTextExtractor class.
PdfTextExtractor exists in v5.0.2+ with AGPL license (Current project is based on the iTextSharp 4.x, not 5.x).
It can't display Unicode characters.
You can find more samples about how to define and use Unicode fonts here.
Table rowspans don't work correctly.
This version which is based on iTextSharp V4.1.6 doesn't support rowspans correctly (iTextSharp supports row spans correctly since v5.4.3, not before that). A solution based on the current version: use nested tables to simulate it.
iTextSharp.text.html.simpleparser.HTMLWorker does not exist.
It has been renamed to HtmlWorker.
I used
SKBitmap(SkiaSharp) with barcodes orImage.GetInstance(...). Why doesn't my code compile anymore?
The library no longer depends on SkiaSharp and is fully managed (no native assets). The SKBitmap-based APIs now use a small managed iTextSharp.text.RawBitmap instead. See the migration guide for the full list of breaking changes and copy-paste snippets to convert RawBitmap to/from SKBitmap and System.Drawing.Bitmap.
Licensing
You have three license choices when it comes to iTextSharp: LGPL/MPL, AGPL, or a commercial license. The LGPL/MPL license is only an option with the older 4.1.6 version (used here). After that version, they switched to a dual AGPL/Commercial.
If you need a more recent version, you either have to make your project open-source or pay the license fee.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.7.2
- BouncyCastle.Cryptography (>= 2.6.2)
-
.NETStandard 2.0
- BouncyCastle.Cryptography (>= 2.6.2)
- System.Text.Encoding.CodePages (>= 10.0.9)
-
net10.0
- BouncyCastle.Cryptography (>= 2.6.2)
-
net8.0
- BouncyCastle.Cryptography (>= 2.6.2)
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 |
|---|---|---|
| 3.8.0 | 145 | 6/15/2026 |
| 3.8.0-preview1 | 107 | 6/14/2026 |
Replace SkiaSharp with a fully-managed RawBitmap