Bersihkan RTF File melalui C# dan Ekspresi Reguler di .NET Aplikasi Inti

Temukan dan hapus informasi sensitif dari Dokumen, Spreadsheet & Presentasi Office & OpenOffice serta RTF di Windows, Linux & macOS


Redaksi Teks Dokumen untuk .NET API

Antarmuka tunggal format-independen untuk sanitasi informasi sensitif dan rahasia dari dokumen dan gambar PDF, Word, Excel, PowerPoint, termasuk kemampuan untuk mengubah metadata dan menghapus komentar. Dengan alat GroupDocs.Redaction for .NET Anda dapat menyunting informasi rahasia dan menyimpan dokumen yang telah disunting di PDF, mengubah semua halaman menjadi gambar raster atau menyimpan dokumen dalam format aslinya untuk pengeditan lebih lanjut.

Sunting Teks dari RTF menggunakan Ekspresi Reguler melalui C#

GroupDocs.Redaction memungkinkan pengembang .NET menggunakan kekuatan penuh ekspresi reguler untuk menyunting file RTF dengan beberapa langkah mudah.

Mulai dengan API Redaksi

Instal dari baris perintah sebagai nuget install GroupDocs.Redaction atau melalui Package Manager Console Visual Studio dengan Install-Package GroupDocs.Redaction. Atau, dapatkan penginstal MSI offline atau DLL dalam file ZIP dari downloads, dan rujuk ke project Anda secara manual.

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 ID Live Demo

Checkout the free online demo for RTF ID.

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 ID Options

CSV ID

(Comma Seperated Values)

DOC ID

(Microsoft Word Binary Format)

DOCM ID

(Microsoft Word 2007 Marco File)

DOCX ID

(Office 2007+ Word Document)

DOT ID

(Microsoft Word Template Files)

DOTM ID

(Microsoft Word 2007+ Template File)

DOTX ID

(Microsoft Word Template File )

PDF ID

(Portable Document Format)

POT ID

(Microsoft PowerPoint Template Files)

POTM ID

(Microsoft PowerPoint Template File)

PPS ID

(PowerPoint Slide Show)

PPSM ID

(Macro-enabled Slide Show)

PPSX ID

(PowerPoint Slide Show)

PPT ID

(Microsoft PowerPoint 97-2003)

PPTM ID

(Macro-enabled Presentation File)

PPTX ID

(Open XML presentation Format)

XLS ID

(Microsoft Excel Spreadsheet (Legacy))

XLSM ID

(Macro-enabled Spreadsheet)

XLSX ID

(Open XML Workbook)

XLT ID

(Excel 97 - 2003 Template)

XLTM ID

(Excel Macro-Enabled Template)

XLTX ID

(Excel Template)

Back to top
 Indonesian