Net4x.PdfCompressorLibrary
1.1.0
dotnet add package Net4x.PdfCompressorLibrary --version 1.1.0
NuGet\Install-Package Net4x.PdfCompressorLibrary -Version 1.1.0
<PackageReference Include="Net4x.PdfCompressorLibrary" Version="1.1.0" />
paket add Net4x.PdfCompressorLibrary --version 1.1.0
#r "nuget: Net4x.PdfCompressorLibrary, 1.1.0"
// Install Net4x.PdfCompressorLibrary as a Cake Addin #addin nuget:?package=Net4x.PdfCompressorLibrary&version=1.1.0 // Install Net4x.PdfCompressorLibrary as a Cake Tool #tool nuget:?package=Net4x.PdfCompressorLibrary&version=1.1.0
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
- Autoinform.iTextSharp.Pdfa (>= 6.0.0)
- Net4x.FreeImage (>= 4.4.0)
- Net4x.ValueTuple (>= 1.1.0)
-
.NETFramework 4.5
- Autoinform.iTextSharp.Pdfa (>= 6.0.0)
- Net4x.FreeImage (>= 4.4.0)
- Net4x.ValueTuple (>= 1.1.0)
-
.NETFramework 4.8
- Autoinform.iTextSharp.Pdfa (>= 6.0.0)
- Net4x.FreeImage (>= 4.4.0)
- Net4x.ValueTuple (>= 1.1.0)
-
net5.0-windows7.0
- iTextSharp.netstandard (>= 5.5.13.2)
- Net4x.FreeImage (>= 4.4.0)
- Net4x.ValueTuple (>= 1.1.0)
- System.Configuration.ConfigurationManager (>= 5.0.0)
-
net6.0-windows7.0
- iTextSharp.netstandard (>= 5.5.13.2)
- Net4x.FreeImage (>= 4.4.0)
- Net4x.ValueTuple (>= 1.1.0)
- System.Configuration.ConfigurationManager (>= 6.0.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 | 205 | 8/27/2023 |
1.1.0-at20230507022751 | 102 | 5/8/2023 |