Winnovative Software Logo

 HTML to PDF Converter - Excel Library - ASP.NET Charts - RTF to PDF Converter
 PDF Merge and Split - PDF Security - PDF Viewers - PDF to Text - Images Extractor

Skip Navigation Links

PDF Security Library for .NET

The PDF Security library for .NET can be linked into any .NET application, either ASP.NET web sites or Windows Forms applications, to add pdf encryption capabilities to your application.

The Winnovative PDF security for .NET can be used in any type of application to manage the security settings of the PDF documents. You can encrypt the PDF content, add user and owner passwords, control the PDF document permissions for printing, copying, assembling, filling forms, editing content, editing annotations, etc or you can specify the length of the encryption key to 40 or 128 bits, remove all the security settings by providing the user or owner password.

If you need a ready to use tool to manage you PDF documents security settings you can use our command line utility. It is a simple application of the PDF security library.

The integration is extremely easy and no additional installation  is necessary in order to get started. It's just a .NET assembly that you have to reference in your application.   Samples are available in the downloaded archive.


PDF Security for .NET Box
Easy integration, no installation or setup is necessary on the server
Delivered as a single strong named .NET assembly (can be installed in GAC)
Can be deployed on the server by simple copy (xcopy deployment support)
Can be used from ASP.NET, Windows Forms, WPF, Web Service or Console applications
The same assembly can be used both on 32-bit and 64-bit Windows servers
Secure PDF documents from files and streams
Save secured document in memory or in file
Command line sample with full C# source code
Set user and owner passwords
Encrypt PDF document content
40 and 128 bit encryption keys
Set PDF document permissions (print, edit, copy)
Remove PDF document security settings based on user or owner password

Code Sample

1: PdfSecurityOptions securityOptions = new PdfSecurityOptions();
3: securityOptions.CanAssembleDocument = canAssembleDocument;
4: securityOptions.CanCopyContent = canCopyContent;
5: securityOptions.CanEditAnnotations = canEditAnnotations;
6: securityOptions.CanEditContent = canEditContent;
7: securityOptions.CanFillFormFields = canFillFormFields;
8: securityOptions.CanPrint = canPrint;
9: securityOptions.KeySize = keySize;
10: securityOptions.UserPassword = userPassword;
11: securityOptions.OwnerPassword = ownerPassword;
13: PdfSecurityManager securityManager = new PdfSecurityManager(securityOptions);
15: if (removeSecurity)
16:     securityManager.SaveUnSecuredPdfToFile(srcPdfFile, outFile, removeSecurityPswd);
17: else
18:     securityManager.SaveSecuredPdfToFile(srcPdfFile, outFile);