Attīriet PDF 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ī PDF 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 PDF, izmantojot regulārās izteiksmes, izmantojot C#

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

  • Izveidojiet klases Redactor gadījumu un ielādējiet PDF 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.pdf"))
{
	redactor.Apply(new RegexRedaction("\\d{2}\\s*\\d{2}[^\\d]*\\d{6}", new ReplacementOptions(System.Drawing.Color.Blue)));
	redactor.Save();
}

PDF Lv Live Demo

Checkout the free online demo for PDF Lv.

No need to set up

No need to write any code

Just upload the source file

Get the download link

What is PDF File Format?

Portable Document Format (PDF) is a type of document created by Adobe back in 1990s. The purpose of this file format was to introduce a standard for representation of documents and other reference material in a format that is independent of application software, hardware as well as Operating System. PDF files can be opened in Adobe Acrobat Reader/Writer as well in most modern browsers like Chrome, Safari, Firefox via extensions/plug-ins. Most of the commercially available software suites also offer conversion of their documents to PDF file format without the requirement of any additional software component.

Read More

Other Lv Options

CSV Lv

(Comma Seperated Values)

DOC Lv

(Microsoft Word Binary Format)

DOCM Lv

(Microsoft Word 2007 Marco File)

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 )

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