Click or drag to resize

PdfDocumentPdfSecuritySettings Class

A class defining user security settings for a PDF document.

Allows the developer to control user access passwords, encryption, and also who may edit, print and copy content from the PDF document

Implemented in SecuritySettings.

Inheritance Hierarchy
SystemObject
  IronPdfPdfDocumentPdfSecuritySettings

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 4.4.9.15720 (4.4.9.0)
Syntax
public class PdfSecuritySettings

The PdfDocumentPdfSecuritySettings type exposes the following members.

Properties
  NameDescription
Public propertyAllowUserAnnotations
Gets or sets the permissions for users to annotate the PDF document with comments.

If AllowUserAnnotations is set false, the OwnerPassword must be set for the security measure to take effect.

Public propertyAllowUserCopyPasteContent
Gets or sets the permissions for users to extract or 'copy & paste' content (text and images) from f the PDF document.

If AllowUserCopyPasteContent is set false, the OwnerPassword must also be set for the security measure to take effect.

Public propertyAllowUserEdits
Gets or sets the permissions for users edit the PDF document. The features to edit the document depends entirely on the PDF client software used by the end user.

If editing rights are restricted, then the OwnerPassword must be set for the security measure to take effect.

Public propertyAllowUserFormData
Gets or sets the permissions for users to fill-in (enter data into) forms in the PDF document.

If AllowUserFormData is set false, the OwnerPassword must be set for the security measure to take effect.

Public propertyAllowUserPrinting
Gets or sets the permissions for users to print the PDF document.

If print rights are restricted, then the OwnerPassword must be set for the security measure to take effect.

Public propertyOwnerPassword
Sets the owner password and enables 128Bit encryption of PDF content. An owner password is one used to enable and disable all other security settings.

OwnerPassword must be set to a non empty string value for AllowUserCopyPasteContent, AllowUserAnnotations, AllowUserFormData,s AllowUserPrinting and AllowUserEdits to be restricted.

Public propertyUserPassword
Sets the user password and enables 128Bit encryption of PDF content .

A user password if a password that each user must enter to open or print the PDF document.

Top
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodMakePdfDocumentReadOnly
Makes this PDF document read only such that:

Content is encrypted at 128 bit. Copy and paste of content is disallowed. Annotations and form editing are disabled.

Public methodRemovePasswordsAndEncryption
Removes all user and owner password security for a PDF document. Also disables content encryption.

Content is encrypted at 128 bit. Copy and paste of content is disallowed. Annotations and form editing are disabled.

Public methodToString (Inherited from Object.)
Top
See Also