Dear GroupDocs Customers,
We are pleased to announce the release of GroupDocs.Redaction for .NET v26.7. This release focuses on OOXML compliance control when saving Word processing documents and broader spreadsheet format support.
Key New Features
- OOXML compliance on save – Specify and preserve the OOXML compliance level for Word documents.
- Expanded spreadsheet support – Redact and save ODS, OTS, XLSB, XLT, and TAB files with correct format detection and original-format output.
- Smarter CSV and text handling – Skip unsupported image-style (draw-box) redactions for CSV, and keep plain-text documents from being incorrectly saved as XLSX/ZIP packages.
OOXML Compliance for Word Documents
When you save a Word processing document in its original format, you can now set the OOXML compliance level through SaveOptions.WordprocessingSaveOptions.OoxmlCompliance. Use values from the new WordProcessingComplianceLevel enumeration: Ecma, Transitional, or Strict.
If you do not set this property, GroupDocs.Redaction keeps the compliance level of the original document. Strict can only be downgraded to Transitional, not to Ecma. Set RasterizeToPDF to false so the document is saved as Word OOXML rather than as a rasterized PDF.
using GroupDocs.Redaction.Options;
using GroupDocs.Redaction.Redactions;
using (Redactor redactor = new Redactor("sample.docx"))
{
redactor.Apply(new ExactPhraseRedaction("John Doe", new ReplacementOptions("[personal]")));
var options = new SaveOptions()
{
AddSuffix = true,
RasterizeToPDF = false,
RedactedFileSuffix = "Strict"
};
// If not specified, the compliance level of the original document is preserved.
// Strict can only be downgraded to Transitional, not to Ecma.
options.WordprocessingSaveOptions.OoxmlCompliance = WordProcessingComplianceLevel.Strict;
redactor.Save(options);
}
Expanded Spreadsheet Format Support
Version 26.7 adds support for ODS, OTS, XLSB, XLT, and TAB spreadsheets. These formats are detected correctly and can be saved in the original spreadsheet format after redaction, using the same API patterns as other spreadsheet documents.
using GroupDocs.Redaction.Options;
using GroupDocs.Redaction.Redactions;
using (Redactor redactor = new Redactor("sample.xlsb"))
{
redactor.Apply(new ExactPhraseRedaction("Sensitive", new ReplacementOptions("[redacted]")));
redactor.Save(new SaveOptions() { AddSuffix = true, RasterizeToPDF = false });
}
Fixes and Improvements
For text-only spreadsheet formats such as CSV or TAB, draw-box (colored rectangle) text redactions are skipped because these formats do not support image-style replacements.
A plain text document is no longer incorrectly saved as an XLSX/ZIP package instead of remaining a text file.
Useful Links
- Full Release Notes – View the complete list of changes and technical details.
- Download from NuGet – Update your project to the latest version.
- Product Documentation – Explore guides and API references.
We believe these improvements will make GroupDocs.Redaction easier to integrate in modern .NET applications and deliver even greater value to our customers.
As always, we highly value your feedback. Please let us know if you have any questions, suggestions, or feature requests for upcoming releases.
Best regards,
The GroupDocs Team