Class RedactionProgressEventArgs
Shows the redaction progress of the PDF document.
Inheritance
System.Object
RedactionProgressEventArgs
Namespace: Syncfusion.Pdf.Parsing
Assembly: Syncfusion.Pdf.NET.dll
Syntax
public class RedactionProgressEventArgs : Object
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
Properties
Progress
Gets the redaction progress in percentage.
Declaration
public float Progress { get; }
Property Value
Type |
---|
System.Single |
Remarks
Progress constantly increases from 0 to 100. 100 value means that redaction prcoess completed for entire document.