.NET Temel Uygulamalarda C# ve Normal İfadeler aracılığıyla RTF Dosyayı Temizleyin

Windows, Linux ve macOS’ta Office ve OpenOffice Belgeleri, E-Tablolar ve Sunumlar ile RTF’teki hassas bilgileri bulun ve kaldırın


.NET API için Belge Metni Redaksiyonu

PDF, Word, Excel, PowerPoint belgelerindeki ve resimlerdeki hassas ve sınıflandırılmış bilgilerin temizlenmesi için, biçimden bağımsız tek bir arayüz, meta verileri değiştirme ve yorumları kaldırma yeteneği dahil. GroupDocs.Redaction for .NET aracıyla, sınıflandırılmış bilgileri yeniden düzenleyebilir ve düzeltilmiş belgeyi PDF’de kaydedebilir, tüm sayfaları raster görüntülere dönüştürebilir veya daha fazla düzenleme için belgeyi orijinal biçiminde tutabilirsiniz.

C# aracılığıyla Normal İfadeler kullanarak RTF'teki Metni Düzeltin

GroupDocs.Redaction, .NET geliştiricilerinin, RTF dosyasını birkaç kolay adımda yeniden düzenlemek için normal ifadelerin tam gücünü kullanmasına olanak tanır.

  • Redactor sınıfının bir örneğini oluşturun ve RTF dosyasını yükleyin
  • Metni bulmak ve değiştirmek için bir RegexRedaction sınıfı örneği oluşturun
  • RegexRedaction nesnesiyle Redactor.Apply yöntemini çağırın

Redaksiyon API'sini Kullanmaya Başlayın

Komut satırından “nuget install GroupDocs.Redaction”" olarak veya Visual Studio’nun Paket Yöneticisi Konsolu aracılığıyla “Install-Package GroupDocs.Redaction”" ile yükleyin. Alternatif olarak, downloads adresinden bir ZIP dosyasındaki çevrimdışı MSI yükleyicisini veya DLL’leri edinin ve projenizde buna manuel olarak başvurun.

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

Checkout the free online demo for RTF Tr.

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

CSV Tr

(Comma Seperated Values)

DOC Tr

(Microsoft Word Binary Format)

DOCM Tr

(Microsoft Word 2007 Marco File)

DOCX Tr

(Office 2007+ Word Document)

DOT Tr

(Microsoft Word Template Files)

DOTM Tr

(Microsoft Word 2007+ Template File)

DOTX Tr

(Microsoft Word Template File )

PDF Tr

(Portable Document Format)

POT Tr

(Microsoft PowerPoint Template Files)

POTM Tr

(Microsoft PowerPoint Template File)

PPS Tr

(PowerPoint Slide Show)

PPSM Tr

(Macro-enabled Slide Show)

PPSX Tr

(PowerPoint Slide Show)

PPT Tr

(Microsoft PowerPoint 97-2003)

PPTM Tr

(Macro-enabled Presentation File)

PPTX Tr

(Open XML presentation Format)

XLS Tr

(Microsoft Excel Spreadsheet (Legacy))

XLSM Tr

(Macro-enabled Spreadsheet)

XLSX Tr

(Open XML Workbook)

XLT Tr

(Excel 97 - 2003 Template)

XLTM Tr

(Excel Macro-Enabled Template)

XLTX Tr

(Excel Template)

Back to top
 Türkçe