Document Solutions for Word
GrapeCity.Documents.Word.Layout Assembly / GrapeCity.Documents.Word.Layout Namespace / PdfOutputSettings Class / SecurityHandler Property

In This Topic
    SecurityHandler Property
    In This Topic
    Gets or sets an instance of a class derived from GrapeCity.Documents.Pdf.Security.SecurityHandlerBase used to encrypt the PDF.

    Use the CreateSecurityHandler 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 } });

    Syntax
    'Declaration
     
    Public Property SecurityHandler As SecurityHandlerBase
    public SecurityHandlerBase SecurityHandler {get; set;}
    See Also