Table of Contents

Class PdfSecuritySettings

Namespace
PdfSharp.Pdf.Security
Assembly
PdfSharp.dll

Encapsulates access to the security settings of a PDF document.

public sealed class PdfSecuritySettings
Inheritance
object
PdfSecuritySettings

Properties

HasFullPermission

Indicates whether the document is opened with full permission. Returns true unless an owner password secured document was opened with the user password.

IsEncrypted

Returns true, if the standard security handler exists and encryption is active.

OwnerPassword

Sets the owner password of the document. Setting a password automatically sets the PdfDocumentSecurityLevel to PdfDocumentSecurityLevel.Encrypted128Bit if its current value is PdfDocumentSecurityLevel.None.

PermitAnnotations

Permits commenting the document.

PermitAssembleDocument

Permits to insert, rotate, or delete pages and create bookmarks or thumbnail images even if PermitModifyDocument is not set.

PermitExtractContent

Permits content copying or extraction.

PermitFormsFill

Permits filling of form fields.

PermitFullQualityPrint

Permits to print in high quality. insert, rotate, or delete pages and create bookmarks or thumbnail images even if PermitModifyDocument is not set.

PermitModifyDocument

Permits modifying the document.

PermitPrint

Permits printing the document. Should be used in conjunction with PermitFullQualityPrint.

UserPassword

Sets the user password of the document. Setting a password automatically sets the PdfDocumentSecurityLevel to PdfDocumentSecurityLevel.Encrypted128Bit if its current value is PdfDocumentSecurityLevel.None.

Methods

HasPermissionsOfRevision3OrHigherSetTo0(uint)

Returns true if there are permissions set to zero, that were introduced with security handler revision 3.