dotnet add package EvoPdf.PdfSecurity --version 10.0.0
NuGet\Install-Package EvoPdf.PdfSecurity -Version 10.0.0
<PackageReference Include="EvoPdf.PdfSecurity" Version="10.0.0" />
paket add EvoPdf.PdfSecurity --version 10.0.0
#r "nuget: EvoPdf.PdfSecurity, 10.0.0"
// Install EvoPdf.PdfSecurity as a Cake Addin
// Install EvoPdf.PdfSecurity as a Cake Tool
EVO PDF Security Library for .NET
EVO PDF Security Library for .NET can be easily integrated in your applications targeting the .NET Framework to manage the security settings of the PDF documents.
This version of the library is compatible with .NET Framework on Windows 32-bit (x86) and 64-bit (x64) platforms.
For .NET Core and .NET Standard applications on Windows you can use the library from EvoPdf.PdfSecurity.NetCore NuGet package.
In any .NET application for Linux, macOS, Windows, Azure App Service, Xamarin, UWP and other platforms you can use the cross-platform library from EvoPdf.Client NuGet package.
- Secure PDF documents from files and streams
- Save secured document in memory or in file
- Set user and owner passwords
- Encrypt PDF document content
- Support for AES and RC4 encryption algorithms
- Support for 40, 128, 256 bit encryption keys
- Set PDF document permissions (print, edit, copy)
- Remove PDF document security settings based on user or owner password
EVO PDF Security Library for .NET is compatible with Windows platforms which support .NET Framework 4.0 and above, including:
- .NET Framework 4.8.1, 4.7.2, 4.6.1, 4.0 (and above)
- Windows 32-bit (x86) and 64-bit (x64)
- Azure App Service, Azure Cloud Services and Azure Virtual Machines
- Web, Console and Desktop applications
After the reference to library was added to your project you are now 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
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
You can download the full EVO PDF Security for .NET Framework package from EVO PDF Downloads page of the website.
The package for .NET Framework contains the product binaries, a demo Visual Studio project with full C# code for a Console application targeting .NET Framework 4 and later versions, the library documentation in CHM format.
You can evaluate the library for free as long as it is needed to ensure that the solution fits your application needs.
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.
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.
|Versions Compatible and additional computed target framework versions.
|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.
This package has no dependencies.
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.