menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfLoadedDocument.OnPdfPasswordEventHandler - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PdfLoadedDocument.OnPdfPasswordEventHandler

    Delegate for handling Pdf Password.

    Inheritance
    System.Object
    PdfLoadedDocument.OnPdfPasswordEventHandler
    Namespace: Syncfusion.Pdf.Parsing
    Assembly: Syncfusion.Pdf.Portable.dll
    Syntax
    public sealed class OnPdfPasswordEventHandler : MulticastDelegate
    Examples
    // Creates a new document
     PdfLoadedDocument lDoc = new PdfLoadedDocument("Input.pdf");
    // Subscribe the On pdf password event 
    lDoc.OnPdfPassword += new OnPdfPasswordEventHandler(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";
    }

    Constructors

    OnPdfPasswordEventHandler(Object, IntPtr)

    Declaration
    public OnPdfPasswordEventHandler(object object, IntPtr method)
    Parameters
    Type Name Description
    System.Object object
    System.IntPtr method

    Methods

    BeginInvoke(Object, OnPdfPasswordEventArgs, AsyncCallback, Object)

    Declaration
    public virtual IAsyncResult BeginInvoke(object sender, OnPdfPasswordEventArgs args, AsyncCallback callback, object object)
    Parameters
    Type Name Description
    System.Object sender
    OnPdfPasswordEventArgs args
    System.AsyncCallback callback
    System.Object object
    Returns
    Type
    System.IAsyncResult

    EndInvoke(IAsyncResult)

    Declaration
    public virtual void EndInvoke(IAsyncResult result)
    Parameters
    Type Name Description
    System.IAsyncResult result

    Invoke(Object, OnPdfPasswordEventArgs)

    Declaration
    public virtual void Invoke(object sender, OnPdfPasswordEventArgs args)
    Parameters
    Type Name Description
    System.Object sender
    OnPdfPasswordEventArgs args
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved