A SmartRedactionOptions object specifying the options.
Example





In This Topic
GdPicture14 Namespace / GdPicturePDF Class / SmartRedaction Method

SmartRedaction Method (GdPicturePDF)

In This Topic
Starts a smart redaction operation on the currently loaded PDF document.
Syntax

Parameters

Options
A SmartRedactionOptions object specifying the options.

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.

Example
using (GdPicturePDF gdpicturePDF = new GdPicturePDF())
 {
     gdpicturePDF.LoadFromFile("d:\\combined.pdf");
     GdPicturePDF.SmartRedactionOptions redactOptions = new GdPicturePDF.SmartRedactionOptions()
     {
         ResourcePath = @"D:\resources",
         RedactCreditCardNumbers = true,
         RedactEmailAddresses = true,
         RedactPhoneNumbers = true,
         RedactVatIDs = true,
         RedactURIs = true,
         RedactIBANs = true,
         MarkColor = GdPictureColor.Blue
     };
     gdpicturePDF.SmartRedaction(redactOptions);
     
     gdpicturePDF.SaveToFile("d:\\redacted.pdf");
}
See Also