Attīriet DOCM failus, izmantojot C# un regulārās izteiksmes .NET galvenajās lietotnēs

Atrodiet un noņemiet sensitīvu informāciju no Office un OpenOffice dokumentiem, izklājlapām un prezentācijām, kā arī DOCM operētājsistēmās Windows, Linux un macOS


Dokumenta teksta rediģēšana .NET API

Viens no formāta neatkarīgs interfeiss sensitīvas un klasificētas informācijas dezinficēšanai no PDF, Word, Excel, PowerPoint dokumentiem un attēliem, tostarp iespēja mainīt metadatus un noņemt komentārus. Izmantojot rīku GroupDocs.Redaction for .NET, varat rediģēt klasificēto informāciju un saglabāt rediģēto dokumentu mapē PDF, pārveidojot visas lapas rastra attēlos vai saglabāt dokumentu tā sākotnējā formātā turpmākai rediģēšanai.

Rediģēt tekstu no DOCM, izmantojot regulārās izteiksmes, izmantojot C#

GroupDocs.Redaction ļauj .NET izstrādātājiem izmantot pilnu regulāro izteiksmju stiprumu, lai rediģētu DOCM failu, veicot dažas vienkāršas darbības.

  • Izveidojiet klases Redactor gadījumu un ielādējiet DOCM failu
  • Izveidojiet klases RegexRedaction gadījumu, lai atrastu un aizstātu tekstu
  • Izsauciet Redactor.Apply metodi ar RegexRedaction objektu

Sāciet darbu ar Redaction API

Instalējiet no komandrindas kā nuget install GroupDocs.Redaction vai izmantojot Visual Studio pakotņu pārvaldnieka konsoli ar Install-Package GroupDocs.Redaction. Varat arī iegūt bezsaistes MSI instalēšanas programmu vai DLL failā no downloads un manuāli atsaukties uz to savā projektā.

using (Redactor redactor = new Redactor(@"sample.docm"))
{
	redactor.Apply(new RegexRedaction("\\d{2}\\s*\\d{2}[^\\d]*\\d{6}", new ReplacementOptions(System.Drawing.Color.Blue)));
	redactor.Save();
}

DOCM Lv Live Demo

Checkout the free online demo for DOCM Lv.

No need to set up

No need to write any code

Just upload the source file

Get the download link

What is DOCM File Format?

DOCM files are Microsoft Word 2007 or higher generated documents with the ability to run macros. It is similar to DOCX file format but the ability to run macros makes it different from DOCX. Like DOCX, DOCM files can be store text, images, tables, shapes, charts and other contents.The capability to run macros make it easy to save time by executing the series of commands in the form of recorded actions for automatic completion of a task. DOCM files can be opened and edited in Microsoft Word 2007 and above.

Read More

Other Lv Options

CSV Lv

(Comma Seperated Values)

DOC Lv

(Microsoft Word Binary Format)

DOCX Lv

(Office 2007+ Word Document)

DOT Lv

(Microsoft Word Template Files)

DOTM Lv

(Microsoft Word 2007+ Template File)

DOTX Lv

(Microsoft Word Template File )

PDF Lv

(Portable Document Format)

POT Lv

(Microsoft PowerPoint Template Files)

POTM Lv

(Microsoft PowerPoint Template File)

PPS Lv

(PowerPoint Slide Show)

PPSM Lv

(Macro-enabled Slide Show)

PPSX Lv

(PowerPoint Slide Show)

PPT Lv

(Microsoft PowerPoint 97-2003)

PPTM Lv

(Macro-enabled Presentation File)

PPTX Lv

(Open XML presentation Format)

RTF Lv

(Rich Text Format)

XLS Lv

(Microsoft Excel Spreadsheet (Legacy))

XLSM Lv

(Macro-enabled Spreadsheet)

XLSX Lv

(Open XML Workbook)

XLT Lv

(Excel 97 - 2003 Template)

XLTM Lv

(Excel Macro-Enabled Template)

XLTX Lv

(Excel Template)

Back to top
 Latviešu