Redaksi atau Sanitasi Teks adalah proses menghapus teks atau informasi rahasia atau tidak diinginkan dari dokumen digital sambil membiarkan sisa dokumen atau paragraf yang memuatnya tetap utuh. Redaksi membantu pengguna serta organisasi untuk melindungi informasi sensitif mereka dengan menyembunyikan atau menghapusnya secara permanen. Dengan menggunakan GroupDocs.Redaction Java pengguna API kini dapat menyunting, menyembunyikan, atau menghapus teks sensitif dari dokumen pemrosesan kata, lembar kerja, presentasi, PDF, dan file gambar raster. API menyediakan berbagai opsi dan metode untuk redaksi informasi pribadi dalam dokumen. Ini mendukung pencarian dan penyuntingan menggunakan ekspresi reguler, penggunaan penyuntingan tekstual (kode pengecualian) atau grafis (persegi panjang berwarna) dan banyak lagi. Jadi mengapa tidak mencobanya dan mengotomatiskan proses penyuntingan dokumen Anda dengan mengunduh API dan menjelajahi fitur dasar dan lanjutannya.
GroupDocs.Redaction memungkinkan untuk menyunting data sensitif atau pribadi dengan mudah dari dokumen Anda. Kasus redaksi paling populer adalah menghapus teks dari dokumen.
Kode berikut dapat digunakan untuk menerapkan redaksi tekstual ke bagian tertentu dari dokumen menggunakan ekspresi reguler. Ini memungkinkan pengguna untuk mengganti semua angka, mencocokkan pola “AA BB CCCCCC” dengan kotak warna Biru,
// 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 didukung di semua platform dan sistem operasi utama. Untuk panduan persyaratan sistem lengkap, silakan kunjungi persyaratan sistem Sebelum menjalankan kode di bawah ini, pastikan Anda telah menginstal prasyarat berikut di sistem Anda :
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)