Schoon RTF bestanden op via C# en reguliere expressies in .NET kernapps

Zoek en verwijder gevoelige informatie uit Office- en OpenOffice-documenten, -spreadsheets en -presentaties, evenals RTF op Windows, Linux en macOS


Documenttekstredactie voor .NET API

Eén formaat-onafhankelijke interface voor het opschonen van gevoelige en geheime informatie uit de PDF, Word, Excel, PowerPoint documenten en afbeeldingen, inclusief de mogelijkheid om metadata te wijzigen en opmerkingen te verwijderen. Met de tool GroupDocs.Redaction for .NET kunt u de geclassificeerde informatie redigeren en het geredigeerde document opslaan in PDF, alle pagina’s omzetten in rasterafbeeldingen of het document in zijn oorspronkelijke formaat behouden voor verdere bewerking.

Tekst uit RTF redigeren met reguliere expressies via C#

Met GroupDocs.Redaction kunnen .NET-ontwikkelaars met een paar eenvoudige stappen volledige reguliere expressies gebruiken om RTF-bestanden te redigeren.

  • Maak een instantie van Redactor klasse & laad RTF bestand
  • Maak een instantie van de klasse RegexRedaction om de tekst te zoeken en te vervangen
  • Roep Redactor.Apply methode aan met object van RegexRedaction

Aan de slag met Redaction API

Installeer vanaf de opdrachtregel als nuget install GroupDocs.Redaction of via Package Manager Console van Visual Studio met Install-Package GroupDocs.Redaction. U kunt ook het offline MSI-installatieprogramma of de DLL’s in een ZIP-bestand downloaden van downloads en er handmatig naar verwijzen in uw project.

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

Checkout the free online demo for RTF Nl.

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

CSV Nl

(Comma Seperated Values)

DOC Nl

(Microsoft Word Binary Format)

DOCM Nl

(Microsoft Word 2007 Marco File)

DOCX Nl

(Office 2007+ Word Document)

DOT Nl

(Microsoft Word Template Files)

DOTM Nl

(Microsoft Word 2007+ Template File)

DOTX Nl

(Microsoft Word Template File )

PDF Nl

(Portable Document Format)

POT Nl

(Microsoft PowerPoint Template Files)

POTM Nl

(Microsoft PowerPoint Template File)

PPS Nl

(PowerPoint Slide Show)

PPSM Nl

(Macro-enabled Slide Show)

PPSX Nl

(PowerPoint Slide Show)

PPT Nl

(Microsoft PowerPoint 97-2003)

PPTM Nl

(Macro-enabled Presentation File)

PPTX Nl

(Open XML presentation Format)

XLS Nl

(Microsoft Excel Spreadsheet (Legacy))

XLSM Nl

(Macro-enabled Spreadsheet)

XLSX Nl

(Open XML Workbook)

XLT Nl

(Excel 97 - 2003 Template)

XLTM Nl

(Excel Macro-Enabled Template)

XLTX Nl

(Excel Template)

Back to top
 Nederlands