iTextSharp.LGPLv2.Core
3.4.16
See the version list below for details.
dotnet add package iTextSharp.LGPLv2.Core --version 3.4.16
NuGet\Install-Package iTextSharp.LGPLv2.Core -Version 3.4.16
<PackageReference Include="iTextSharp.LGPLv2.Core" Version="3.4.16" />
paket add iTextSharp.LGPLv2.Core --version 3.4.16
#r "nuget: iTextSharp.LGPLv2.Core, 3.4.16"
// Install iTextSharp.LGPLv2.Core as a Cake Addin #addin nuget:?package=iTextSharp.LGPLv2.Core&version=3.4.16 // Install iTextSharp.LGPLv2.Core as a Cake Tool #tool nuget:?package=iTextSharp.LGPLv2.Core&version=3.4.16
iTextSharp.LGPLv2.Core
<p align="left"> <a href="https://github.com/VahidN/iTextSharp.LGPLv2.Core"> <img alt="GitHub Actions status" src="https://github.com/VahidN/iTextSharp.LGPLv2.Core/workflows/.NET%20Core%20Build/badge.svg"> </a> </p>
iTextSharp.LGPLv2.Core
is an unofficial port of the last LGPL version of the iTextSharp (V4.1.6) to .NET Core.
Install via NuGet
To install iTextSharp.LGPLv2.Core, run the following command in the Package Manager Console:
PM> Install-Package iTextSharp.LGPLv2.Core
You can also view the package page on NuGet.
Linux (and containers) support
The SkiaSharp
library needs extra dependencies to work on Linux and containers. Please install the following NuGet packages:
PM> Install-Package SkiaSharp.NativeAssets.Linux.NoDependencies
PM> Install-Package HarfBuzzSharp.NativeAssets.Linux
You also need to modify your .csproj
file to include some MSBuild directives that ensure the required files are in a good place. These extra steps are normally not required but seems to be some issues on how .NET loads them.
<Target Name="CopyFilesAfterPublish" AfterTargets="AfterPublish">
<Copy SourceFiles="$(TargetDir)runtimes/linux-x64/native/libSkiaSharp.so" DestinationFolder="$([System.IO.Path]::GetFullPath('$(PublishDir)'))/bin/" />
<Copy SourceFiles="$(TargetDir)runtimes/linux-x64/native/libHarfBuzzSharp.so" DestinationFolder="$([System.IO.Path]::GetFullPath('$(PublishDir)'))/bin/" />
</Target>
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.
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 was computed. 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. |
.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 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. 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.6.2
- BouncyCastle.Cryptography (>= 2.2.1)
- SkiaSharp (>= 2.88.6)
-
.NETStandard 2.0
- BouncyCastle.Cryptography (>= 2.2.1)
- SkiaSharp (>= 2.88.6)
- System.Text.Encoding.CodePages (>= 7.0.0)
NuGet packages (72)
Showing the top 5 NuGet packages that depend on iTextSharp.LGPLv2.Core:
Package | Downloads |
---|---|
PdfRpt.Core
PdfReport.Core is a code first reporting engine, which is built on top of the iTextSharp.LGPLv2.Core and EPPlus.Core libraries. |
|
DYKJ.Framework
DYKJ.Framework |
|
BlueBox.Core
Core Framework |
|
Messaia.Net.iTextExtensions
iTextSharp Extensions |
|
iCom
iCom integrates a variety of specific operation classes, such as: Cookie, Items, Cache, Form, DbContext, DbDynamic, DbConn, SqlQuery, FileUtil, FileUpload, Crypto, BarCode, StringUtil, TypeConvert, SortList, DateUtil, RegexUtil, Environal, ReflectUtil, HttpClient, ImageUtil, XmlUtil, ZipPackage, WordUtil, ExcelUtil, PdfUtil, PinyinConvert, PdfToImageConverter, JsonConfig, XmlConfig, ObjectCopy, TagHelper, SkipUrlMiddleware and so on. // HttpContext Called in the ConfigureServices method services.AddContextAccessor(); // Called in the Configure method app.UseHttpContext(); // EfCore Called in the ConfigureServices method // Application Assembly var assembly = Assembly.GetExecutingAssembly(); // Register Database Models services.AddDbContext(assembly); // Auto Update Database services.AddMigrate(); // Register All Services services.AddService(assembly); |
GitHub repositories (3)
Showing the top 3 popular GitHub repositories that depend on iTextSharp.LGPLv2.Core:
Repository | Stars |
---|---|
VahidN/PdfReport.Core
PdfReport.Core is a code first reporting engine, which is built on top of the iTextSharp.LGPLv2.Core and EPPlus.Core libraries
|
|
majorsilence/My-FyiReporting
Majorsilence Reporting, .NET report designer and viewer. Fork of fyireporting,
|
|
Serg-Norseman/GEDKeeper
GEDKeeper - program for work with personal genealogical database
|
Version | Downloads | Last updated |
---|---|---|
3.4.22 | 66,576 | 9/25/2024 |
3.4.21 | 123,185 | 7/24/2024 |
3.4.20 | 169,731 | 5/16/2024 |
3.4.19 | 55,304 | 4/27/2024 |
3.4.18 | 211,200 | 2/26/2024 |
3.4.17 | 40,136 | 2/13/2024 |
3.4.16 | 555 | 2/13/2024 |
3.4.15 | 197,259 | 12/15/2023 |
3.4.14 | 23,382 | 12/7/2023 |
3.4.13 | 38,249 | 11/27/2023 |
3.4.12 | 114,461 | 10/20/2023 |
3.4.11 | 35,823 | 10/9/2023 |
3.4.10 | 3,199 | 10/6/2023 |
3.4.9 | 45,448 | 10/2/2023 |
3.4.8 | 41,965 | 9/27/2023 |
3.4.7 | 8,366 | 9/21/2023 |
3.4.6 | 10,823 | 9/17/2023 |
3.4.5 | 37,811 | 9/1/2023 |
3.4.4 | 3,722 | 8/30/2023 |
3.4.3 | 202,337 | 6/3/2023 |
3.4.2 | 42,993 | 5/13/2023 |
3.4.1 | 1,572 | 5/12/2023 |
3.4.0 | 6,014 | 5/11/2023 |
3.3.5 | 54,080 | 4/19/2023 |
3.3.4 | 20,784 | 4/12/2023 |
3.3.3 | 66,793 | 3/17/2023 |
3.3.2 | 167,257 | 2/5/2023 |
3.3.1 | 10,429 | 2/2/2023 |
3.3.0 | 11,097 | 2/1/2023 |
3.2.1 | 22,262 | 1/24/2023 |
3.2.0 | 7,975 | 1/22/2023 |
3.1.1 | 2,439 | 1/22/2023 |
3.1.0 | 29,303 | 1/6/2023 |
3.0.0 | 13,265 | 1/3/2023 |
2.0.1 | 36,690 | 12/25/2022 |
2.0.0 | 67,745 | 12/18/2022 |
1.9.4 | 107,493 | 12/7/2022 |
1.9.3 | 165,688 | 11/17/2022 |
1.9.2 | 336,647 | 9/20/2022 |
1.9.1 | 6,413 | 9/16/2022 |
1.9.0 | 26,974 | 9/15/2022 |
1.8.0 | 682,274 | 5/10/2022 |
1.7.5 | 1,427,593 | 10/5/2021 |
1.7.4 | 69,470 | 9/18/2021 |
1.7.3 | 145,987 | 7/27/2021 |
1.7.2 | 6,958 | 7/27/2021 |
1.7.1 | 1,118,961 | 1/28/2021 |
1.7.0 | 826,376 | 11/10/2020 |
1.6.9 | 153,821 | 10/12/2020 |
1.6.7 | 1,543,499 | 4/29/2020 |
1.6.6 | 20,649 | 4/17/2020 |
1.6.5 | 146,505 | 3/27/2020 |
1.6.4 | 12,540 | 3/25/2020 |
1.6.3 | 56,702 | 3/14/2020 |
1.6.2 | 109,640 | 2/17/2020 |
1.6.1 | 664,895 | 10/1/2019 |
1.6.0 | 41,525 | 9/19/2019 |
1.5.1 | 370,074 | 7/10/2019 |
1.5.0 | 914,520 | 3/8/2019 |
1.4.6 | 118,397 | 2/19/2019 |
1.4.5 | 303,353 | 11/11/2018 |
1.4.4 | 353,855 | 7/5/2018 |
1.4.3 | 48,977 | 6/1/2018 |
1.4.2 | 157,967 | 2/2/2018 |
1.4.1 | 8,812 | 1/18/2018 |
1.4.0 | 35,439 | 12/22/2017 |
1.3.4 | 26,052 | 11/28/2017 |
1.3.3 | 3,604 | 11/24/2017 |
1.3.2 | 156,843 | 8/15/2017 |
1.3.1 | 18,678 | 6/23/2017 |
1.3.0 | 4,246 | 6/8/2017 |
1.2.7 | 10,562 | 5/12/2017 |
1.2.6 | 3,955 | 5/4/2017 |
1.2.5 | 2,550 | 5/4/2017 |
1.2.4 | 15,250 | 2/25/2017 |
1.2.3 | 10,448 | 11/17/2016 |
1.2.2 | 2,753 | 11/10/2016 |
1.2.1 | 2,659 | 11/8/2016 |
1.2.0 | 12,735 | 10/23/2016 |
1.1.2 | 2,607 | 9/29/2016 |
1.1.1 | 2,384 | 9/14/2016 |
1.1.0 | 4,115 | 9/5/2016 |
1.0.0 | 5,293 | 9/4/2016 |