.NET 핵심 앱에서 C# 및 정규식을 통해 RTF 파일을 살균합니다.

Office 및 OpenOffice 문서, 스프레드시트 및 프레젠테이션은 물론 Windows, Linux 및 macOS의 RTF에서 민감한 정보를 찾아 제거합니다.


.NET API에 대한 문서 텍스트 교정

메타데이터를 변경하고 주석을 제거하는 기능을 포함하여 PDF, Word, Excel, PowerPoint 문서 및 이미지에서 민감하고 분류된 정보를 삭제하기 위한 단일 형식 독립적 인터페이스입니다. GroupDocs.Redaction for .NET 도구를 사용하면 분류된 정보를 수정하고 PDF에 수정된 문서를 저장하여 모든 페이지를 래스터 이미지로 변환하거나 추가 편집을 위해 문서를 원래 형식으로 유지할 수 있습니다.

C#을 통해 정규식을 사용하여 RTF에서 텍스트 수정

GroupDocs.Redaction을 사용하면 .NET 개발자가 정규식의 모든 기능을 사용하여 몇 가지 간단한 단계로 RTF 파일을 수정할 수 있습니다.

  • Redactor 클래스의 인스턴스 생성 및 RTF 파일 로드
  • RegexRedaction 클래스의 인스턴스를 만들어 텍스트를 찾고 바꿉니다.
  • RegexRedaction 객체로 Redactor.Apply 메서드를 호출합니다.

Redaction API 시작하기

명령줄에서 nuget install GroupDocs.Redaction로 설치하거나 Install-Package GroupDocs.Redaction를 사용하여 Visual Studio의 패키지 관리자 콘솔을 통해 설치합니다. 또는 다운로드에서 ZIP 파일의 오프라인 MSI 설치 프로그램 또는 DLL을 가져와 프로젝트에서 수동으로 참조하세요.

using (Redactor redactor = new Redactor(@"sample.rtf"))
{
	redactor.Apply(new RegexRedaction("\\d{2}\\s*\\d{2}[^\\d]*\\d{6}", new ReplacementOptions(System.Drawing.Color.Blue)));
	redactor.Save();
}

RTF Ko Live Demo

Checkout the free online demo for RTF Ko.

No need to set up

No need to write any code

Just upload the source file

Get the download link

What is RTF File Format?

Introduced and documented by Microsoft, the Rich Text Format (RTF) represents a method of encoding formatted text and graphics for use within applications. The format facilitates cross-platform document exchange with other Microsoft Products, thus serving the purpose of interoperability. This capability makes it a standard of data transfer between word processing software and, hence, contents can be transferred from one operating system to another without losing document formatting. The file format specifications are available by Microsoft for public download and can be referred to from developer’s perspective.

Read More

Other Ko Options

CSV Ko

(Comma Seperated Values)

DOC Ko

(Microsoft Word Binary Format)

DOCM Ko

(Microsoft Word 2007 Marco File)

DOCX Ko

(Office 2007+ Word Document)

DOT Ko

(Microsoft Word Template Files)

DOTM Ko

(Microsoft Word 2007+ Template File)

DOTX Ko

(Microsoft Word Template File )

PDF Ko

(Portable Document Format)

POT Ko

(Microsoft PowerPoint Template Files)

POTM Ko

(Microsoft PowerPoint Template File)

PPS Ko

(PowerPoint Slide Show)

PPSM Ko

(Macro-enabled Slide Show)

PPSX Ko

(PowerPoint Slide Show)

PPT Ko

(Microsoft PowerPoint 97-2003)

PPTM Ko

(Macro-enabled Presentation File)

PPTX Ko

(Open XML presentation Format)

XLS Ko

(Microsoft Excel Spreadsheet (Legacy))

XLSM Ko

(Macro-enabled Spreadsheet)

XLSX Ko

(Open XML Workbook)

XLT Ko

(Excel 97 - 2003 Template)

XLTM Ko

(Excel Macro-Enabled Template)

XLTX Ko

(Excel Template)

Back to top
 한국인