What You Can Do with GroupDocs.Redaction for .NET

Edit or Hide Sensitive Text in PPTX Documents with .NET

Keep your presentations clean and private. Use GroupDocs.Redaction for .NET and C# to remove anything you don’t want shared.

Steps to Clean Pptx Presentations

Use GroupDocs.Redaction for .NET in your .NET app to remove or cover up sensitive content in just a few steps.

  1. Start a new Redactor and load your Pptx file.
  2. Pick the redaction rules you want to apply.
  3. Set the text to find and what to replace it with.
  4. Run redaction and save your file.
// Redacting a PPTX presentation

// Open the file with Redactor
using (Redactor redactor  = new Redactor("input.pptx"))
{
    // Pick the redaction settings
    // Choose the text to search and replace
    var repl_opt = new ReplacementOptions("[redacted]");
    
    var redaction = new ExactPhraseRedaction("Text to hide", repl_opt);

    // Apply changes and save the updated file
    redactor.Apply(redaction);
    redactor.Save();
}
dotnet add package GroupDocs.Redaction
클릭하여 복사
복사됨
더 많은 예시 문서

Redaction Features You Can Use

GroupDocs.Redaction for .NET helps you find and hide sensitive text, images, and hidden data across multiple file types. Perfect for sharing files safely.

Available redaction options

Replace hidden text

Search and swap private words or phrases anywhere in the file. Regex is supported too.

Cover images

Use blocks to hide pictures or areas you want to mask. Control shape, size, and color.

Delete hidden details

Clean metadata like author names, last edited dates, or comments to make your file clean.

Redact Using Regex Patterns

Find and clean data like email addresses or IDs using regex. Great for repeatable redaction.

C#

//  Open your file
using (Redactor redactor  = new Redactor("source.pptx"))
{
    // Write an EMAIL regex pattern and set the replacement
    var repl_opt = new ReplacementOptions("[redacted]");
    string emailRegex = @"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}";

    var redaction = new RegexRedaction(emailRegex, repl_opt);

    // Apply your redaction settings
    redactor.Apply(redaction);

    // Save the redacted version
    var save_opt = new SaveOptions() { AddSuffix = true, RasterizeToPDF = false };
    var outputPath = redactor.Save(save_opt);
}
dotnet add package GroupDocs.Redaction
클릭하여 복사
복사됨
더 많은 예시 문서

What is GroupDocs.Redaction for .NET?

GroupDocs.Redaction for .NET gives C# developers what they need to remove sensitive content from PPTX files. It handles text, visuals, comments, and metadata.
자세히 알아보기
About illustration

시작할 준비가 되셨나요?

GroupDocs.Redaction을 무료로 다운로드하거나 전체 액세스를 위한 평가판 라이선스를 받으세요!

유용한 리소스

경험을 향상시키기 위해 문서, 코드 샘플 및 커뮤니티 지원을 탐색하십시오.

Clean Up PPTX Files with .NET

Make your PPTX documents safer to share by hiding private text with .NET. Quick, reliable results.

임시 라이센스 팁

1
직장 이메일로 가입하세요. 무료 메일 서비스는 허용되지 않습니다.
2
두 번째 단계에서 임시 라이센스 받기 버튼을 사용하세요.
 한국인