GroupDocs.Redaction for .NET 26.4 Release Notes

Major Features

There are the following improvements in this release:

  • Enhanced support for Wordprocessing formats such as OpenOffice ODT and OTT.
  • Updated Images Exif meta-data processing.
  • Added support of metadata processing for Webp format.

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
REDACTIONNET-740Improve Images Exif data processingEnhancement
REDACTIONNET-742Implement support for Wordprocessing ODT and OTT formatsEnhancement
REDACTIONNET-743Implement Webp metadata processingEnhancement

Public API and Backward Incompatible Changes

Public API changes

No changes

Usage

GroupDocs.Redaction fully supports the newly added Wordprocessing formats (ODT and OTT), along with all previously supported document types.


// Define replacement options and redaction parameters.
// Hide all occurrences of the word "Problem" in a document with red color rectangle.
var redaction_img = new ExactPhraseRedaction("Problem", new ReplacementOptions(System.Drawing.Color.Red));

// Apply redaction to a ODT file and save the result.
using (var redactor = new Redactor("sample.odt"))
{
    redactor.Apply(redaction_img);
    var so =  new SaveOptions() { AddSuffix = true, RasterizeToPDF = false, RedactedFileSuffix = "file_redacted" };
    var out_file = redactor.Save();
}

Clear Webp file metadata using the following code snippet:


// Define options to remove all supported metadata.
var redaction = new EraseMetadataRedaction();

// Erase Webp metadata and save the result.
using (var redactor = new Redactor("sample.webp"))
{
    var result = redactor.Apply(redaction);

    if (result.Status != RedactionStatus.Failed)
    {
        var out_file = redactor.Save(new SaveOptions() { AddSuffix = true, RasterizeToPDF = false });
    }
}