ApplyAllRedactions Method (GdViewer)
Applies all redactions to the native document based on redaction annotations present in the document.
Return Value
A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.
We strongly recommend always checking this status first.
How to apply redactions based on redaction annotations.
'We assume that the GdViewer1 control has been properly integrated.
Sub buttonApplyRedactions_Click(ByVal sender As Object, ByVal e As EventArgs)
GdViewer1.ApplyAllRedactions()
If GdViewer1.GetStat() <> GdPictureStatus.OK Then MessageBox.Show("Error! Status: " + GdViewer1.GetStat().ToString(), "ApplyAllRedactions")
End Sub
//We assume that the GdViewer1 control has been properly integrated.
void buttonApplyRedactions_Click(object sender, EventArgs e)
{
GdViewer1.ApplyAllRedactions();
if (GdViewer1.GetStat() != GdPictureStatus.OK) MessageBox.Show("Error! Status: " + GdViewer1.GetStat().ToString(), "ApplyAllRedactions");
}