We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Syncfusion Feedback


Trusted by the world’s leading companies

Overview

The Syncfusion .NET Core PDF library provides an easy way to permanently remove confidential or sensitive information from PDF documents with just a few lines of code. It complies fully with privacy laws such as GDPR (General Data Protection Regulation).


Mark for redaction

Mark sensitive or confidential data programmatically and forward it to the next person for further review and approval before redacting.

Permanently remove sensitive data

Remove sensitive or confidential text, images, areas, or entire pages entirely and permanently from the PDF documents.


Search and redact

Programmatically search the entire document to identify a specific text and personal information. Then, automatically mark and redact sensitive information patterns related to phone numbers, credit cards, and email addresses.

Redact sensitive content with an overlay text

Draw the overlay text on the redacted area and customize the overlay text with a different font, style, color, and brush.


Redact sensitive content with an image

Redact the information from a page by drawing an image on the redacted area. This will completely remove the content from the PDF document and apply the image over the redacted area.

Redact sensitive content with a pattern

Remove the sensitive content from a PDF document by adding a mosaic pattern on redacted areas.


Custom appearance on the redacted area

Draw a filled rectangle or any other graphical shape on redacted bounds. This will completely remove the content from the PDF document and apply the custom appearance to the redacted area.

Redact form fields and annotations

Completely remove any form fields and annotations in the given redacted area.


How to redact PDF content from PDF documents in C#

Remove the confidential content from the page in the PDF document with just a few lines of C# code, as demonstrated in the following code. Please explore .NET Core PDF Example that shows how to redact the content from a PDF document.

//Load the PDF document from stream
using (PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputStream))
{   
    PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage;
    //Create a PDF redaction for the page
    PdfRedaction redaction = new PdfRedaction(new RectangleF(340, 120, 140, 20));
    //Add redaction to the first page
    loadedPage.Redactions.Add(redaction);
    //Save the redacted PDF document to the memory stream
    MemoryStream stream = new MemoryStream();
    loadedDocument.Save(stream);
}

Other supported frameworks

The PDF redaction annotation flatten operation is currently supported in the .NET Framework and ASP.NET Core platforms only, it is not supported in the UWP, Xamarin platforms.



Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.

Scroll up icon