Net4x.PdfCompressorLibrary
1.1.0-at20230507022751
See the version list below for details.
dotnet add package Net4x.PdfCompressorLibrary --version 1.1.0-at20230507022751
NuGet\Install-Package Net4x.PdfCompressorLibrary -Version 1.1.0-at20230507022751
<PackageReference Include="Net4x.PdfCompressorLibrary" Version="1.1.0-at20230507022751" />
paket add Net4x.PdfCompressorLibrary --version 1.1.0-at20230507022751
#r "nuget: Net4x.PdfCompressorLibrary, 1.1.0-at20230507022751"
// Install Net4x.PdfCompressorLibrary as a Cake Addin #addin nuget:?package=Net4x.PdfCompressorLibrary&version=1.1.0-at20230507022751&prerelease // Install Net4x.PdfCompressorLibrary as a Cake Tool #tool nuget:?package=Net4x.PdfCompressorLibrary&version=1.1.0-at20230507022751&prerelease
PdfCompression
Compress PDF documents with help of ITextSharp and FreeImage third party libs. Excellent point to start and customize for your particular cases.
My experience was based on scanned documents mostly black-and-white. This project could help you to compress files up to 70%
Settings
Build solution and restore Nuget packages ITextSharp and FreeImage.
- Setup at first parameters SourceFolder and DestinationFolder at App.config file.
- Copy FreeImage.dll from "\packages\VVVV.FreeImage.3.15.1.1\build\net40\freeimage\x86\FreeImage.dll" into "bin" folder at "PdfCompressorLibrary" and "UnitTests". "FreeImage.dll" is the main C++ lib, which resample, resize images brilliantly.
First launch
Run single test "RunCompression" and point fileName. Verify compressed file in Destination folder. If quality/compressionLevel were not satisfied you, then try to play with "compressionLevel" parameter at "Runner.cs"
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0-windows7.0 is compatible. net6.0-windows was computed. net6.0-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. |
.NET Framework | net40 is compatible. net403 was computed. net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
-
.NETFramework 4.0
- FreeImage-dotnet-core (>= 4.4.0-at20230501052836)
- itextsharp (>= 5.5.13.3)
- System.ValueTuple (>= 4.5.0)
-
.NETFramework 4.5
- FreeImage-dotnet-core (>= 4.4.0-at20230501052836)
- itextsharp (>= 5.5.13.3)
- System.ValueTuple (>= 4.5.0)
-
.NETFramework 4.8
- FreeImage-dotnet-core (>= 4.4.0-at20230501052836)
- itextsharp (>= 5.5.13.3)
- System.ValueTuple (>= 4.5.0)
-
net5.0-windows7.0
- FreeImage-dotnet-core (>= 4.4.0-at20230501052836)
- iTextSharp.netstandard (>= 5.5.13.2)
- System.Configuration.ConfigurationManager (>= 5.0.0)
- System.ValueTuple (>= 4.5.0)
-
net6.0-windows7.0
- FreeImage-dotnet-core (>= 4.4.0-at20230501052836)
- iTextSharp.netstandard (>= 5.5.13.2)
- System.Configuration.ConfigurationManager (>= 6.0.0)
- System.ValueTuple (>= 4.5.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Net4x.PdfCompressorLibrary:
Package | Downloads |
---|---|
Net4x.PdfRecognizerLibrary
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.1.0 | 208 | 8/27/2023 |
1.1.0-at20230507022751 | 104 | 5/8/2023 |