C1.C1Pdf.4 Assembly > C1.C1Pdf Namespace : PdfSecurity Class |
PdfSecurity has properties that allow you to specify owner and user passwords for a Pdf document. The OwnerPassword is required to change passwords and permissions. The UserPassword is required to open the document.
PdfSecurity also has properties that allow you to specify what permissions a regular user should have. For example, you may allow users to see the document but not to print or edit it.
You can specify permissions and set only the OwnerPassword, leaving the UserPassword empty. In this case, anyone will be allowed to open the document, but only the owner will be allowed to change the permissions.
Note that the encryption scheme used by Pdf is public and is not 100% secure. There are ways to crack encrypted Pdf documents. The security provided is adequate to protect your documents from most casual attacks, but if your data is truly sensitive you should not rely on Pdf encryption alone.
System.Object
C1.C1Pdf.PdfSecurity
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2