PdfSharp-GDI  1.31.7289
PdfSharp.Pdf.Security.PdfSecuritySettings Class Reference

Encapsulates access to the security settings of a PDF document. More...

Properties

bool HasOwnerPermissions [get]
 Indicates whether the granted access to the document is 'owner permission'. Returns true if the document is unprotected or was opened with the owner password. Returns false if the document was opened with the user password. More...
 
PdfDocumentSecurityLevel DocumentSecurityLevel [get, set]
 Gets or sets the document security level. If you set the security level to anything but PdfDocumentSecurityLevel.None you must also set a user and/or an owner password. Otherwise saving the document will fail. More...
 
string UserPassword [set]
 Sets the user password of the document. Setting a password automatically sets the PdfDocumentSecurityLevel to PdfDocumentSecurityLevel.Encrypted128Bit if its current value is PdfDocumentSecurityLevel.None. More...
 
string OwnerPassword [set]
 Sets the owner password of the document. Setting a password automatically sets the PdfDocumentSecurityLevel to PdfDocumentSecurityLevel.Encrypted128Bit if its current value is PdfDocumentSecurityLevel.None. More...
 
bool PermitPrint [get, set]
 Permits printing the document. Should be used in conjunction with PermitFullQualityPrint. More...
 
bool PermitModifyDocument [get, set]
 Permits modifying the document. More...
 
bool PermitExtractContent [get, set]
 Permits content copying or extraction. More...
 
bool PermitAnnotations [get, set]
 Permits commenting the document. More...
 
bool PermitFormsFill [get, set]
 Permits filling of form fields. More...
 
bool PermitAccessibilityExtractContent [get, set]
 Permits content extraction for accessibility. More...
 
bool PermitAssembleDocument [get, set]
 Permits to insert, rotate, or delete pages and create bookmarks or thumbnail images even if PermitModifyDocument is not set. More...
 
bool PermitFullQualityPrint [get, set]
 Permits to print in high quality. insert, rotate, or delete pages and create bookmarks or thumbnail images even if PermitModifyDocument is not set. More...
 

Detailed Description

Encapsulates access to the security settings of a PDF document.

Property Documentation

◆ DocumentSecurityLevel

PdfDocumentSecurityLevel PdfSharp.Pdf.Security.PdfSecuritySettings.DocumentSecurityLevel
getset

Gets or sets the document security level. If you set the security level to anything but PdfDocumentSecurityLevel.None you must also set a user and/or an owner password. Otherwise saving the document will fail.

◆ HasOwnerPermissions

bool PdfSharp.Pdf.Security.PdfSecuritySettings.HasOwnerPermissions
get

Indicates whether the granted access to the document is 'owner permission'. Returns true if the document is unprotected or was opened with the owner password. Returns false if the document was opened with the user password.

◆ OwnerPassword

string PdfSharp.Pdf.Security.PdfSecuritySettings.OwnerPassword
set

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

◆ PermitAccessibilityExtractContent

bool PdfSharp.Pdf.Security.PdfSecuritySettings.PermitAccessibilityExtractContent
getset

Permits content extraction for accessibility.

◆ PermitAnnotations

bool PdfSharp.Pdf.Security.PdfSecuritySettings.PermitAnnotations
getset

Permits commenting the document.

◆ PermitAssembleDocument

bool PdfSharp.Pdf.Security.PdfSecuritySettings.PermitAssembleDocument
getset

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

◆ PermitExtractContent

bool PdfSharp.Pdf.Security.PdfSecuritySettings.PermitExtractContent
getset

Permits content copying or extraction.

◆ PermitFormsFill

bool PdfSharp.Pdf.Security.PdfSecuritySettings.PermitFormsFill
getset

Permits filling of form fields.

◆ PermitFullQualityPrint

bool PdfSharp.Pdf.Security.PdfSecuritySettings.PermitFullQualityPrint
getset

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

◆ PermitModifyDocument

bool PdfSharp.Pdf.Security.PdfSecuritySettings.PermitModifyDocument
getset

Permits modifying the document.

◆ PermitPrint

bool PdfSharp.Pdf.Security.PdfSecuritySettings.PermitPrint
getset

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

◆ UserPassword

string PdfSharp.Pdf.Security.PdfSecuritySettings.UserPassword
set

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


The documentation for this class was generated from the following file: