Table of Contents

Delegate PdfLoadedDocument.RedactionProgressEventHandler

Namespace
Syncfusion.Pdf.Parsing
Assembly
Syncfusion.Pdf.Portable.dll

Delegate for handling redaction progress.

public delegate void PdfLoadedDocument.RedactionProgressEventHandler(object sender, RedactionProgressEventArgs arguments)

Parameters

sender object
arguments RedactionProgressEventArgs

Examples

PdfLoadedDocument document = new PdfLoadedDocument("input.pdf");
// Get first page from the document
PdfLoadedPage page = document.Pages[0] as PdfLoadedPage;
PdfRedaction redaction = new PdfRedaction(new RectangleF(37, 94, 50, 10), System.Drawing.Color.Black);
//Adds redaction to the loaded page
page.Redactions.Add(redaction);           
document.RedactionProgress += redaction_TrackProgress;
//Save the document
document.Save("output.pdf");
document.Close(true);         
// Event handler for Track redaction process
  void redaction_TrackProgress(object sender, RedactionProgressEventArgs arguments)
  {
    MessageBox.Show(String.Format("Redaction Process " + arguments.Progress + " % completed"));
  }
Dim document As PdfLoadedDocument =  New PdfLoadedDocument("input.pdf") 
'Get first page from the document
Dim page As PdfLoadedPage =  document.Pages(0) as PdfLoadedPage 
Dim redaction As PdfRedaction =  New PdfRedaction(New RectangleF(37,94,50,10),System.Drawing.Color.Black) 
'Adds redaction to the loaded page
page.Redactions.Add(redaction)           
document.RedactionProgress += redaction_TrackProgress
'Save the document
document.Save("output.pdf")
document.Close(True)         
'Event handler for Track redaction process
Private  Sub redaction_TrackProgress(ByVal sender As Object, ByVal arguments As RedactionProgressEventArgs)
  MessageBox.Show(String.Format("Redaction Process " + arguments.Progress + " % completed"))
End Sub

Constructors

RedactionProgressEventHandler(object, nint)

public RedactionProgressEventHandler(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(object, RedactionProgressEventArgs, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(object sender, RedactionProgressEventArgs arguments, AsyncCallback callback, object @object)

Parameters

sender object
arguments RedactionProgressEventArgs
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual void EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Invoke(object, RedactionProgressEventArgs)

public virtual void Invoke(object sender, RedactionProgressEventArgs arguments)

Parameters

sender object
arguments RedactionProgressEventArgs