GroupDocs.Redaction for .NET 22.7 Release Notes

Major Features

There are the following improvements in this release:

  • Implement Remove Page Redactions
  • License not working for GroupDocs.Redaction when other Aspose APIs are installed

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
REDACTIONNET-405Implement Remove Page RedactionsImprovement
REDACTIONNET-407License not working for GroupDocs.Redaction when other Aspose APIs are installedBug

Public API and Backward Incompatible Changes

Implement Remove Page Redactions

This improvement allows users to delete a range of pages (slides, worksheets) from PDF documents, spreadsheets and presentations.

License not working for GroupDocs.Redaction when other Aspose APIs are installed

This bug fix allows users to use latest versions of Aspose components with GroupDocs.Redaction for .NET.

Public API changes

Interface IPaginatedDocument, declaring methods required to support page deletion, has been added to GroupDocs.Redaction.Integration namespace.
Enumeration PageSeekOrigin, containing page seek options, has been added to GroupDocs.Redaction.Redactions namespace.
Class RemovePageRedaction, implementing page remove redactions, has been added to GroupDocs.Redaction.Redactions namespace.

Usage

The following example demonstrates how to remove the last page from a PDF file.

C#

            using (Redactor redactor = new Redactor("Contract.pdf"))
            {
                // Requires at least 1 page
                if (redactor.GetDocumentInfo().PageCount >= 1)
                {
                    redactor.Apply(new RemovePageRedaction(PageSeekOrigin.End, 0, 1));
                    redactor.Save(new SaveOptions() { AddSuffix = true, RasterizeToPDF = false });
                }
            }