CoherentPDF 2.5.3

.NET 5.0
Install-Package CoherentPDF -Version 2.5.3
dotnet add package CoherentPDF --version 2.5.3
<PackageReference Include="CoherentPDF" Version="2.5.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CoherentPDF --version 2.5.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CoherentPDF, 2.5.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install CoherentPDF as a Cake Addin
#addin nuget:?package=CoherentPDF&version=2.5.3

// Install CoherentPDF as a Cake Tool
#tool nuget:?package=CoherentPDF&version=2.5.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Coherent PDF Library for .NET

CoherentPDF is a .NET interface to the cpdf pdf tools. More information, including commercial licenses can be found at

The sofware is free for non-commercial use. The non-commercial home of this software is


  • Quality Split and Merge, keeping bookmarks. Extract pages. Split on Bookmarks.
  • Encrypt and Decrypt (including AES 128 and AES 256 encryption)
  • Scale, rotate, crop and flip pages. Scale pages to fit
  • Copy, Remove and Add bookmarks
  • Stamp logos, watermarks, page numbers and multiline text. Transparency.
  • Supports Unicode UTF8 text input and output
  • Put multiple pages on a single page
  • List, copy, or remove annotations
  • Read and set document information and metadata
  • Add and remove file attachments to document or page.
  • Thicken hairlines, blacken text, make draft documents
  • Reconstruct malformed files
  • Detect missing fonts, low resolution images
  • Read and write PDF as JSON

Obtaining and installing the DLLs

The DLL libcpdf is required. This is free for non-commercial use. Commercial use requires a license. The DLL can be obtained here for all platforms here:

Before using the library, you must make sure your project or build environment has access to the cpdf DLL, which is not part of the .NET assembly obtained from NuGet. You can add it to a Visual Studio project as a file, set to copy-to-output-folder. Or, you can install it in a standard location, such as the Windows system folder.

The DLL libcpdf.dll provided in this folder must be renamed to cpdf.dll, for .NET to be able to find it.


Full manual (required reading):

Follow the instructions at the end of Chapter 1 to write your first program.

In addition, the NuGet package provides Intellisense documentation with each function.


Bug reports:

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • net5.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.5.3 62 3/15/2022
2.5.2 45 3/11/2022
2.5.1 45 3/9/2022