GroupDocs.Redaction for .NET: 민감한 정보를 숨기는 데 도움을 주는 귀하의 .NET 앱을 위한 솔루션입니다.
- Redactor 인스턴스를 설정하고 Pptx 파일을 불러옵니다.
- 필요에 맞게 정리 설정을 구성합니다.
- 이미지 영역을 선택하고 오버레이 색상을 지정합니다.
- 정리를 처리하고 파일을 저장하세요.
GroupDocs.Redaction for .NET: 민감한 정보를 숨기는 데 도움을 주는 귀하의 .NET 앱을 위한 솔루션입니다.
// PPTX에서 민감한 이미지 영역 정리하기
// Redactor를 사용하여 파일을 열기
using (Redactor redactor = new Redactor("input.pptx"))
{
// 오버레이 색상 및 크기를 정의하기
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.pptx"))
{
// 오버레이 크기, 위치 및 색상을 설정합니다.
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를 사용하여 PPTX 파일의 민감한 콘텐츠를 숨기거나 삭제하세요. 문서 보안을 위한 신뢰할 수 있는 솔루션입니다.