GroupDocs.Redaction for .NET 19.12 Release Notes

Note
This page contains release notes for GroupDocs.Redaction for .NET 19.12

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

Note
This section lists public API changes that were introduced in GroupDocs.Redaction for .NET 19.12. It includes not only new and obsoleted public methods, but also a description of any changes in the behavior behind the scenes in GroupDocs.Redaction which may affect existing code. Any behavior introduced that could be seen as a regression and modifies existing behavior is especially important and is documented here.

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();
}