GroupDocs.Redaction for .NET 19.12 Release Notes

Major Features

There are the following improvements in this release:

  • Support for .NET Standard 2.0 
  • Redactor settings including logging interface

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
REDACTIONNET-234Provide implementation for .NET Standard 2.0Improvement
REDACTIONNET-235Implement standard logging interfaceImprovement

Public API and Backward Incompatible Changes

Implement standard logging interface

Implement standard logging interface for GroupDocs projects.

Public API changes 

Class RedactorSettings has been added to GroupDocs.Redaction.Optionsnamespace.
Interface ILogger has been added to GroupDocs.Redaction.Optionsnamespace.
Property Redactor.RedactionCallback has been declared obsolete.
Method IsRedactionAccepted(RedactionDescription)  has been added to GroupDocs.Redaction.Integration.DocumentFormatInstanceclass.
Method AddRange(MetadataCollection)  has been added to GroupDocs.Redaction.Integration.MetadataCollectionclass.
Constructors, accepting RedactionSettings have been added to GroupDocs.Redaction.Redactor class.
Method DocumentFormatInstance.Initialize()  now requires an instance ofRedactorSettingas a second parameter.
Property String Description has been added to GroupDocs.Redaction.Redaction class.

Usecases

The following example demonstrates how to set instances of MyCustomLogger and MyRedactionCallback classes:

C#

using (Redactor redactor = new Redactor("\\SampleFile.doc", new LoadOptions(), 
	new RedactorSettings(new MyCustomLogger(), new MyRedactionCallback())))
{
    redactor.Apply(new ExactPhraseRedaction("John Doe"), new ReplacementOptions(Color.Red));
    redactor.Save();
}

© Aspose Pty Ltd 2001-2022. All Rights Reserved.