GroupDocs.Redaction for .NET는 귀하의 .NET 앱이 문서에서 개인 콘텐츠를 신속하게 숨기도록 돕습니다.
- Redactor 객체를 생성하고 Word 파일 경로를 지정합니다.
- 필요에 맞게 정리 매개변수를 설정합니다.
- 이미지 영역을 표시하고 오버레이 색상을 정의합니다.
- 처리하여 정리된 파일을 저장합니다.
GroupDocs.Redaction for .NET는 귀하의 .NET 앱이 문서에서 개인 콘텐츠를 신속하게 숨기도록 돕습니다.
// WORD에서 민감한 이미지 덮기
// Redactor 생성자를 통해 파일을 로드합니다.
using (Redactor redactor = new Redactor("input.docx"))
{
// 오버레이 색상 및 크기를 정의합니다.
Size replacement_size = new Size(100, 100);
var replacement_options = new RegionReplacementOptions(Color.Blue, replacement_size);
// 정리할 이미지 영역 선택합니다.
Point replacement_point = new Point(200, 200);
var redaction = new ImageAreaRedaction(replacement_point, replacement_options);
// 오버레이를 적용하고 문서를 저장합니다.
redactor.Apply(redaction);
redactor.Save();
}
GroupDocs.Redaction for .NET은 여러 파일 형식에서 데이터를 숨기거나 제거하는 간단한 방법을 제공합니다. 민감한 정보를 보호하면서 문서를 깔끔하고 읽기 쉽게 유지합니다.
문서 전체에서 민감한 텍스트를 찾아 수정하여 비공식 정보를 보호하세요.
특정 이미지 영역 또는 전체 이미지를 마스킹하여 비공식 비주얼을 보호합니다.
숨겨진 메타데이터를 삭제하거나 수정하여 의도치 않은 데이터 유출을 방지합니다.
// 편집할 문서를 로드합니다.
using (Redactor redactor = new Redactor("source.docx"))
{
// 오버레이 크기, 위치 및 색상을 설정합니다.
Size replacement_size = new Size(300, 30);
var replacement_options = new RegionReplacementOptions(Color.Blue, replacement_size);
Point replacement_point = new Point(20, 125);
var redaction = new ImageAreaRedaction(replacement_point, replacement_options);
// 첫 페이지의 특정 이미지 영역에 집중합니다.
redaction.Filters = new RedactionFilter[] {
new PageRangeFilter(PageSeekOrigin.Begin, 0, 1),
new PageAreaFilter(new Point(0, 300), new Size(600, 600))
};
// 오버레이 정리를 적용합니다.
redactor.Apply(redaction);
// 파일에 대한 변경 사항을 저장합니다.
var save_options = new SaveOptions() { AddSuffix = true, RasterizeToPDF = false };
var outputPath = redactor.Save(save_options);
}
.NET는 WORD 파일에서 민감한 콘텐츠를 숨기거나 삭제할 수 있는 방법입니다. 기밀 및 공식 문서를 보호하는 신뢰할 수 있는 방법입니다.