[]
Gets or sets an instance of a class derived from GrapeCity.Documents.Pdf.Security.SecurityHandlerBase used to encrypt the PDF.
Use the CreateSecurityHandler(string) method to initialize this property or create and assign the handler directly.
For example, the following code may be used to password protect the PDF:
wordLayout.SaveAsPdf("output.pdf", null, new PdfOutputSettings
{
SecurityHandler = new StandardSecurityHandlerRev6
{
UserPassword = "231",
OwnerPassword = "#%f8JK",
PrintingPermissions = PrintingPermissions.Disabled,
EditingPermissions = EditingPermissions.Disabled,
CopyContent = false
}
});
public SecurityHandlerBase SecurityHandler { get; set; }
Public Property SecurityHandler As SecurityHandlerBase