EvoPdf.PdfSecurity 14.0.2

Prefix Reserved
dotnet add package EvoPdf.PdfSecurity --version 14.0.2
                    
NuGet\Install-Package EvoPdf.PdfSecurity -Version 14.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EvoPdf.PdfSecurity" Version="14.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EvoPdf.PdfSecurity" Version="14.0.2" />
                    
Directory.Packages.props
<PackageReference Include="EvoPdf.PdfSecurity" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add EvoPdf.PdfSecurity --version 14.0.2
                    
#r "nuget: EvoPdf.PdfSecurity, 14.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package EvoPdf.PdfSecurity@14.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=EvoPdf.PdfSecurity&version=14.0.2
                    
Install as a Cake Addin
#tool nuget:?package=EvoPdf.PdfSecurity&version=14.0.2
                    
Install as a Cake Tool

EVO PDF Security Library for .NET

EVO PDF Logo Image

PDF Security for .NET | HTML to PDF for .NET | Free Trial | Licensing | Support

EVO PDF Security Library for .NET can be used in .NET Framework, .NET Core and .NET Standard applications to manage the security settings of PDF documents.

This package is compatible with .NET Framework, .NET Core and .NET Standard 2.0 on Windows platforms.

Main Features

  • Secure PDF documents from files and streams
  • Save secured documents in memory or to files
  • Set user and owner passwords
  • Encrypt PDF document content
  • Support AES and RC4 encryption algorithms
  • Support 40, 128 and 256-bit encryption keys
  • Set PDF document permissions (print, edit, copy)
  • Remove PDF document security settings using a user or owner password

Compatibility

The compatibility list includes the following .NET versions, platforms and application types:

  • .NET Framework 4.0 and above
  • .NET 10, 9, 8, 7, 6
  • .NET Standard 2.0
  • Windows platforms
  • Azure App Service
  • Azure Cloud Services and Azure Virtual Machines
  • Web, Console and Desktop applications

Getting Started

After adding a reference to the library to your project, you are ready to start writing code to manage the PDF documents security in your .NET application. You can copy the C# code lines from the section below to password protect a PDF document from a given file, disable document printing and save the modified PDF document in a new PDF file.

C# Code Samples

At the top of your C# source file add the using EvoPdf.PdfSecurity; statement to make available the EVO PDF Security API for your .NET application.

// add this using statement at the top of your C# file
using EvoPdf.PdfSecurity;

To password protect a PDF document from a given file, disable document printing and save the modified PDF document in a new PDF file you can use the C# code below.

// create the security options object to password protect the PDF and disable printing
PdfSecurityOptions securityOptions = new PdfSecurityOptions();

securityOptions.CanPrint = false;
securityOptions.UserPassword = "OpenPassword";
securityOptions.OwnerPassword = "AdminPassword";
securityOptions.EncryptionAlgorithm = EncryptionAlgorithm.AES;
securityOptions.KeySize = EncryptionKeySize.EncryptKey256Bit;

// create the security manager object
PdfSecurityManager securityManager = new PdfSecurityManager(securityOptions);

// change the security of a PDF document from a given file
// and save the modified PDF document in a new PDF file
securityManager.SaveSecuredPdfToFile("my_pdf_file_path", "secured.pdf");

Free Trial

You can download the EVO PDF Security for .NET evaluation package from EVO PDF Downloads page of the website.

The evaluation package for .NET contains the product binaries and demo web and console projects with full C# code for .NET Framework and .NET Core.

You can evaluate the library for free as long as it is needed to ensure that the solution fits your application needs.

Licensing

The EVO PDF Software licenses are perpetual which means they never expire for a version of the product and include free maintenance for the first year. You can find more details about licensing on website.

Support

For technical and sales questions or for general inquiries about our software and company you can contact us using the email addresses from the contact page of the website.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  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 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
14.0.2 103 2/10/2026