EVO PDF Security Library for .NET
=================================

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.

You can see the https://www.evopdf.com/evopdf-pdf-security-dotnet product page for a complete list of library features.

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
===============

You can quickly start with the demo applications from the Samples folder of this package or you can integrate the library into your own project.

Reference the Library in .NET Framework Projects
------------------------------------------------

In your .NET Framework project add a reference to the evosecurepdf.dll assembly from the Lib/net40 folder of this package or to the EvoPdf.PdfSecurity NuGet package.

Reference the Library in .NET Core Projects
-------------------------------------------

In your .NET Core project add a reference to the EvoPdf.PdfSecurity NuGet package.

Alternatively you can reference the EvoPdfSecurity_NetCore.dll library directly from the Lib/netstandard2.0 folder of this package, but in this case you also have to manually reference the dependencies of the EvoPdf.PdfSecurity package for .NET Standard 2.0.

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
==========

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 in https://www.evopdf.com/buy page of the 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 https://www.evopdf.com/contact page of the website.
