GroupDocs.Redaction for .NET: 귀하의 .NET 앱이 문서를 안전하게 보호하도록 제작되었습니다. 몇 단계 만에 민감한 정보를 정리하세요.
- Redactor를 초기화하고 Docx 파일의 경로를 제공합니다.
- 필요에 따라 정리 옵션을 구성합니다.
- 이미지 영역을 선택하고 오버레이 색상을 선택합니다.
- 정리를 실행하고 파일을 저장합니다.
GroupDocs.Redaction for .NET: 귀하의 .NET 앱이 문서를 안전하게 보호하도록 제작되었습니다. 몇 단계 만에 민감한 정보를 정리하세요.
// DOCX에서 민감한 이미지 영역 덮기
// 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를 사용하여 DOCX 파일에서 민감한 데이터를 커버하거나 제거하세요. 기밀 문서를 보호하기 위한 이상적인 방법입니다.