一个独立于格式的界面,用于清理 PDF、Word、Excel、PowerPoint 文档和图像中的敏感和机密信息,包括更改元数据和删除评论的功能。使用 GroupDocs.Redaction for .NET 工具,您可以编辑机密信息并将编辑后的文档保存在 PDF 中,将所有页面转换为光栅图像或保留文档的原始格式以供进一步编辑。
GroupDocs.Redaction 允许 .NET 开发者通过几个简单的步骤使用完整的正则表达式来编辑 RTF 文件。
通过命令行“nuget install GroupDocs.Redaction”进行安装,或通过 Visual Studio 的包管理器控制台使用“Install-Package GroupDocs.Redaction”进行安装。 或者,从 下载 获取 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();
}
Checkout the free online demo for RTF Zh.
No need to set up
No need to write any code
Just upload the source file
Get the download link
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(Comma Seperated Values)
(Microsoft Word Binary Format)
(Microsoft Word 2007 Marco File)
(Office 2007+ Word Document)
(Microsoft Word Template Files)
(Microsoft Word 2007+ Template File)
(Microsoft Word Template File )
(Portable Document Format)
(Microsoft PowerPoint Template Files)
(Microsoft PowerPoint Template File)
(PowerPoint Slide Show)
(Macro-enabled Slide Show)
(PowerPoint Slide Show)
(Microsoft PowerPoint 97-2003)
(Macro-enabled Presentation File)
(Open XML presentation Format)
(Microsoft Excel Spreadsheet (Legacy))
(Macro-enabled Spreadsheet)
(Open XML Workbook)
(Excel 97 - 2003 Template)
(Excel Macro-Enabled Template)
(Excel Template)