テキストの墨消しまたは無害化は、デジタル文書から機密または不要なテキストまたは情報を削除し、それを含む文書または段落の残りの部分はそのままにするプロセスです。墨消しは、ユーザーと組織が機密情報を非表示または永久に削除することで保護するのに役立ちます。 GroupDocs.Redaction Java API を使用すると、ユーザーはワープロ文書、ワークシート、プレゼンテーション、PDF、およびラスター画像ファイルから機密テキストを編集、非表示、または削除できるようになりました。 API は、ドキュメント内の個人情報を編集するための幅広いオプションとメソッドを提供します。正規表現を使用した検索と墨消し、テキスト (免除コード) またはグラフィック (色付きの四角形) の墨消しの使用などをサポートします。 API をダウンロードしてドキュメントの編集プロセスを自動化し、その基本機能と高度な機能を試してみてはいかがでしょうか。
GroupDocs.Redaction を使用すると、ドキュメントから機密またはプライベートな性質のデータを簡単に編集できます。最も一般的な編集ケースは、文書からテキストを削除することです。
次のコードを使用すると、正規表現を使用してドキュメントの特定の部分にテキストの編集を適用できます。ユーザーは、パターン「AA BB CCCCCC」を青色の長方形に一致させて、すべての数字を置き換えることができます。
// For complete examples and data files, please go to https://github.com/groupdocs-search/GroupDocs.Redaction-for-Java | |
//Load document | |
Document doc = Redactor.load(Utilities.mapSourceFilePath(FilePath)); | |
// Perform regular expression redaction | |
doc.redactWith(new RegexRedaction("\\d{2}\\s*\\d{2}[^\\d]*\\d{6}", new ReplacementOptions(java.awt.Color.BLUE))); | |
// Save the document in original format and overwriting original file | |
SaveOptions so = new SaveOptions(); | |
so.setAddSuffix(false); | |
so.setRasterizeToPDF(false); | |
doc.save(so); | |
doc.close(); |
GroupDocs.Redaction for Java API は、すべての主要なプラットフォームとオペレーティング システムでサポートされています。完全なシステム要件ガイドについては、システム要件 を参照してください。以下のコードを実行する前に、次の前提条件がシステムにインストールされていることを確認してください。 :
A file with DOTM extension represents template file created with Microsoft Word 2007 or higher. It is similar to the popular DOCX file format other than it retains the user defined settings for reuse in case of creating new documents. Such documents are more often used in offices where a standard template file is generated with settings like page information, margins, default layout and macros, and is used to create new documents from it when required. DOTM files, however, save macros, that are a series of commands in the form of recorded actions for automatic completion of a task. This helps save time in carrying out actions that are repeated in completion of a task.
Read More(Comma Seperated Values)
(Microsoft Word Binary Format)
(Microsoft Word 2007 Marco File)
(Office 2007+ Word Document)
(Microsoft Word Template Files)
(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)
(Rich Text Format)
(Microsoft Excel Spreadsheet (Legacy))
(Macro-enabled Spreadsheet)
(Open XML Workbook)
(Excel 97 - 2003 Template)
(Excel Macro-Enabled Template)
(Excel Template)