[]
Provides security and encryption services and manages permissions for C1PdfDocument objects.
public class PdfSecurity : IDisposable
<p>
<xref href="C1.Pdf.PdfSecurity" data-throw-if-not-resolved="false"></xref> 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.
Name | Description |
---|---|
AllowCopyContent | Gets or sets whether the user can copy contents from the PDF document. |
AllowEditAnnotations | Gets or sets whether the user can edit annotations in the PDF document. |
AllowEditContent | Gets or sets whether the user can edit the contents of the PDF document. |
AllowPrint | Gets or sets whether the user can print the PDF document. |
Encryption | Gets or sets the type of encryption used for PDF security. |
OwnerPassword | Gets or sets the password required to change permissions for the PDF document. |
SignedTime | Gets universal signed time for the PDF document. |
UserPassword | Gets or sets the password required to open the PDF document. |
Name | Description |
---|---|
Dispose() | Clean up resources being used. |
GetStreamLength(byte[]) | Gets the PDF file stream length for the data. |