Great news for .NET developers! GroupDocs.Redaction for .NET 23.3 (DLLs-only) has been released, and it includes advanced document redaction features to upgrade your cross-platform C# applications. Experience convenient integration, DjVu file support, and more with this release.
Support for DjVu Files
Seamlessly redact sensitive data from DjVu documents with page removal and image redaction functionalities using the latest .NET redaction API release on Windows, Linux, and macOS. The following C# code example illustrates how to remove three frames from a DjVu file.
using (Redactor redactor = new Redactor("DrawingScans.djvu"))
{
if (redactor.GetDocumentInfo().PageCount > 3)
{
redactor.Apply(new RemovePageRedaction(PageSeekOrigin.Begin, 0, 3));
redactor.Save();
}
}
Source*
Document Pre-Rasterization
Supercharge app performance by rasterizing documents before applying redactions. With this feature, users can easily process large or complex files. Check out this code example to learn how to pre-rasterize a Word (DOCX) document in your platform-independent C# apps.
bool preRasterize = true;
using (Redactor redactor = new Redactor("Sample.docx"), new LoadOptions(preRasterize))
{
// Make changes to the file as a rasterized PDF, e.g. uisng ImageAreaRedaction:
System.Drawing.Point samplePoint = new System.Drawing.Point(516, 311);
System.Drawing.Size sampleSize = new System.Drawing.Size(170, 35);
RedactorChangeLog result = redactor.Apply(new ImageAreaRedaction(samplePoint,
new RegionReplacementOptions(System.Drawing.Color.Blue, sampleSize)));
if (result.Status != RedactionStatus.Failed)
{
redactor.Save();
};
}
Source*
Enriched RTF Handling
GroupDocs.Redaction for .NET 23.3 removes duplicate replacement text problems encountered in RTF, OpenOffice, and MS Word documents.
Refined Color Replacement
The issues with color replacements in PDF documents have been resolved to ascertain redaction functionality works seamlessly.
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting GroupDocs.Redaction for .NET 23.3 Release Notes.