iTextSharp.LGPLv2.Core 3.4.17

iTextSharp.LGPLv2.Core

iTextSharp.LGPLv2.Core

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:

Nuget

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

Functional Tests

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.

No packages depend on iTextSharp.LGPLv2.Core.

.NET Framework 4.6.2

.NET Standard 2.0

Version Downloads Last updated
3.4.22 1 11/08/2024
3.4.21 0 07/24/2024
3.4.20 3 05/25/2024
3.4.19 2 05/25/2024
3.4.18 3 05/04/2024
3.4.17 2 05/25/2024
3.4.16 3 05/06/2024
3.4.15 2 05/14/2024
3.4.14 2 05/25/2024
3.4.13 2 05/25/2024
3.4.12 2 05/25/2024
3.4.11 5 05/20/2024
3.4.10 3 05/25/2024
3.4.9 2 05/20/2024
3.4.8 3 05/25/2024
3.4.7 2 05/09/2024
3.4.6 6 05/25/2024
3.4.5 4 05/25/2024
3.4.4 2 05/21/2024
3.4.3 3 05/06/2024
3.4.2 2 05/25/2024
3.4.1 3 05/05/2024
3.4.0 2 05/18/2024
3.3.5 2 05/21/2024
3.3.4 2 05/24/2024
3.3.3 3 05/25/2024
3.3.2 5 05/24/2024
3.3.1 3 05/25/2024
3.3.0 4 05/25/2024
3.2.1 2 05/17/2024
3.2.0 2 05/25/2024
3.1.1 3 05/25/2024
3.1.0 2 05/25/2024
3.0.0 4 05/23/2024
2.0.1 3 05/21/2024
2.0.0 3 05/23/2024
1.9.4 3 05/14/2024
1.9.3 3 05/07/2024
1.9.2 5 05/25/2024
1.9.1 2 05/22/2024
1.9.0 4 05/05/2024
1.8.0 3 05/22/2024
1.7.5 2 05/25/2024
1.7.4 2 05/01/2024
1.7.3 2 05/25/2024
1.7.2 4 05/06/2024
1.7.1 2 05/21/2024
1.7.0 2 05/20/2024
1.6.9 3 05/17/2024
1.6.7 2 05/25/2024
1.6.6 3 05/26/2024
1.6.5 3 05/19/2024
1.6.4 2 05/20/2024
1.6.3 2 05/25/2024
1.6.2 3 04/25/2023
1.6.1 4 05/09/2024
1.6.0 2 05/15/2024
1.5.1 2 05/19/2024
1.5.0 3 05/20/2024
1.4.6 2 05/16/2024
1.4.5 2 05/01/2024
1.4.4 3 05/25/2024
1.4.3 3 05/17/2024
1.4.2 2 05/25/2024
1.4.1 1 05/25/2024
1.4.0 4 05/25/2024
1.3.4 1 05/25/2024
1.3.3 5 05/25/2024
1.3.2 4 05/21/2024
1.3.1 2 05/21/2024
1.3.0 2 05/06/2024
1.2.7 2 05/23/2024
1.2.6 3 05/14/2024
1.2.5 3 04/18/2024
1.2.4 2 05/02/2024
1.2.3 2 05/24/2024
1.2.2 3 05/19/2024
1.2.1 3 05/07/2024
1.2.0 1 05/25/2024
1.1.2 3 05/19/2024
1.1.1 4 05/04/2024
1.1.0 2 05/01/2024
1.0.0 2 05/05/2024