ASP.NET MVC

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class OnPdfPasswordEventArgs - ASP.NETMVC API Reference | Syncfusion

    Show / Hide Table of Contents

    Class OnPdfPasswordEventArgs

    Arguments of Pdf Password.

    Inheritance
    System.Object
    OnPdfPasswordEventArgs
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Pdf.Parsing
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public class OnPdfPasswordEventArgs
    Examples
    // Creates a new document
     PdfLoadedDocument lDoc = new PdfLoadedDocument("Input.pdf");
    // Subscribe the On pdf password event 
    lDoc.OnPdfPassword += LDoc_OnPdfPassword;
    //Access the attachments
    PdfAttachmentCollection attachment=lDoc.Attachments;
    //Save the document
    lDoc.save("Ouput.pdf");        
    // On Pdf Password event handler
    void LDoc_OnPdfPassword(object sender, OnPdfPasswordEventArgs args)
    {
     args.UserPassword = "syncfusion";
    }

    Properties

    UserPassword

    Gets or sets a value of pdf password.

    Declaration
    public string UserPassword { get; set; }
    Property Value
    Type Description
    System.String
    Examples
    // Creates a new document
     PdfLoadedDocument lDoc = new PdfLoadedDocument("Input.pdf");
    // Subscribe the On pdf password event 
    lDoc.OnPdfPassword += LDoc_OnPdfPassword;
    //Access the attachments
    PdfAttachmentCollection attachment=lDoc.Attachments;
    //Save the document
    lDoc.save("Ouput.pdf");        
    // On Pdf Password event handler
    void LDoc_OnPdfPassword(object sender, OnPdfPasswordEventArgs args)
    {
     args.UserPassword = "syncfusion";
    }
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved