iTextSharp.LGPLv2.Core 3.4.19

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