GroupDocs.Redaction for .NET 21.9 Release Notes

Major Features

There are the following improvements in this release:

  • Add support for custom PDF metadata

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
REDACTIONNET-383Add support for custom PDF metadataImprovement

Public API and Backward Incompatible Changes

Add support for custom PDF metadata

This improvement allows users to apply redactions to custom XML metadata within PDF files, including metadata of the embedded image resources.

Public API changes

Property Category, containing IDs of the embedded resources, has been added to MetadataItem class.

Usage

The following example demonstrates how to remove strings like “/first.last” (e.g. user name in source file paths) from the embedded images metadata of a PDF file.

C#

            using (var redactor = new Redactor("FileWithEmbeddedImages.pdf"))
            {
                var result = redactor.Apply(new MetadataSearchRedaction(@"/([^\./]+\.[^/]+)", "/redacted"));
                if (result.Status != RedactionStatus.Failed)
                {
                    redactor.Save(new SaveOptions(false, "Redacted"));
                }
            }

© Aspose Pty Ltd 2001-2022. All Rights Reserved.