# iTextSharp.LGPLv2.Core **Repository Path**: LGBd/iTextSharp.LGPLv2.Core ## Basic Information - **Project Name**: iTextSharp.LGPLv2.Core - **Description**: No description available - **Primary Language**: Unknown - **License**: LGPL-2.1 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-09-24 - **Last Updated**: 2024-11-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README iTextSharp.LGPLv2.Core ======================

GitHub Actions status

`iTextSharp.LGPLv2.Core` is an **unofficial** port of the last [LGPL version](http://www.gnu.org/licenses/old-licenses/lgpl-2.0-standalone.html) of the [iTextSharp (V4.1.6)](https://github.com/itextsharper/iTextSharp-4.1.6) to .NET Core. Install via NuGet ----------------- To install iTextSharp.LGPLv2.Core, run the following command in the Package Manager Console: [![Nuget](https://img.shields.io/nuget/v/iTextSharp.LGPLv2.Core)](https://github.com/VahidN/iTextSharp.LGPLv2.Core) ``` PM> Install-Package iTextSharp.LGPLv2.Core ``` You can also view the [package page](http://www.nuget.org/packages/iTextSharp.LGPLv2.Core/) on NuGet. Usage ------ [Functional Tests](/src/iTextSharp.LGPLv2.Core.FunctionalTests) 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](https://github.com/VahidN/iTextSharp.LGPLv2.Core/blob/master/src/iTextSharp.LGPLv2.Core.FunctionalTests/iTextExamples/Chapter11Tests.cs#L69). 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](https://github.com/VahidN/iTextSharp.LGPLv2.Core/blob/master/src/iTextSharp.LGPLv2.Core.FunctionalTests/iTextExamples/Chapter11Tests.cs). > 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](https://github.com/VahidN/iTextSharp.LGPLv2.Core/blob/master/src/iTextSharp.LGPLv2.Core.FunctionalTests/HtmlWorkerTests.cs#L42). Note ----------------- To run this project on non-Windows-based operating systems, you will need to install `libgdiplus` too: - Ubuntu 16.04 and above: - apt-get install libgdiplus - cd /usr/lib - ln -s libgdiplus.so gdiplus.dll - Fedora 23 and above: - dnf install libgdiplus - cd /usr/lib64/ - ln -s libgdiplus.so.0 gdiplus.dll - CentOS 7 and above: - yum install autoconf automake libtool - yum install freetype-devel fontconfig libXft-devel - yum install libjpeg-turbo-devel libpng-devel giflib-devel libtiff-devel libexif-devel - yum install glib2-devel cairo-devel - git clone https://github.com/mono/libgdiplus - cd libgdiplus - ./autogen.sh - make - make install - cd /usr/lib64/ - ln -s /usr/local/lib/libgdiplus.so libgdiplus.so - Docker - RUN apt-get update \\ && apt-get install -y libgdiplus - MacOS - brew install mono-libgdiplus After installing the [Mono MDK](http://www.mono-project.com/download/#download-mac), Copy Mono MDK Files: - /Library/Frameworks/Mono.framework/Versions/4.6.2/lib/libgdiplus.0.dylib - /Library/Frameworks/Mono.framework/Versions/4.6.2/lib/libgdiplus.0.dylib.dSYM - /Library/Frameworks/Mono.framework/Versions/4.6.2/lib/libgdiplus.dylib - /Library/Frameworks/Mono.framework/Versions/4.6.2/lib/libgdiplus.la And paste them to: /usr/local/lib 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.