pdfSweep 2.0.5 API
iText.PdfCleanup.Autosweep.RegexBasedCleanupStrategy Class Reference

This class represents a regular expression based cleanup strategy More...

Inheritance diagram for iText.PdfCleanup.Autosweep.RegexBasedCleanupStrategy:
iText.PdfCleanup.Autosweep.ICleanupStrategy

Public Member Functions

  RegexBasedCleanupStrategy (String regex)
 
  RegexBasedCleanupStrategy (Regex pattern)
 
virtual Color  GetRedactionColor (IPdfTextLocation location)
  Get the color in which redaction is to take place More...
 
virtual iText.PdfCleanup.Autosweep.RegexBasedCleanupStrategy  SetRedactionColor (Color color)
 
virtual ICleanupStrategy  Reset ()
  ICleanupStrategy objects have to be reset at times PdfAutoSweep will use the same strategy for all pages, and expects to receive only the rectangles from the last page as output. More...
 

Detailed Description

This class represents a regular expression based cleanup strategy

Member Function Documentation

◆ GetRedactionColor()

virtual Color iText.PdfCleanup.Autosweep.RegexBasedCleanupStrategy.GetRedactionColor ( IPdfTextLocation  location )
inlinevirtual

Get the color in which redaction is to take place

Parameters
location where to get the redaction color from
Returns
a iText.Kernel.Colors.Color

Implements iText.PdfCleanup.Autosweep.ICleanupStrategy.

◆ Reset()

virtual ICleanupStrategy iText.PdfCleanup.Autosweep.RegexBasedCleanupStrategy.Reset ( )
inlinevirtual

ICleanupStrategy objects have to be reset at times PdfAutoSweep will use the same strategy for all pages, and expects to receive only the rectangles from the last page as output.

ICleanupStrategy objects have to be reset at times PdfAutoSweep will use the same strategy for all pages, and expects to receive only the rectangles from the last page as output. Hence the reset method.

Returns
a clone of this Object

Implements iText.PdfCleanup.Autosweep.ICleanupStrategy.