Delegate PdfLoadedDocument.OnPdfPasswordEventHandler
Delegate for handling Pdf Password.
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public delegate void OnPdfPasswordEventHandler(object sender, OnPdfPasswordEventArgs args);
Parameters
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
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