pdfSweep 5.0.6 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)
  Creates an object of regular expression based cleanup strategy. More...
 
  RegexBasedCleanupStrategy (Regex pattern)
  Creates an object of regular expression based cleanup strategy. More...
 
virtual Color  GetRedactionColor (IPdfTextLocation location)
  Get the color in which redaction is to take place More...
 
virtual iText.PdfCleanup.Autosweep.RegexBasedCleanupStrategy  SetRedactionColor (Color color)
  Sets the color in which redaction is to take place. More...
 
virtual ICleanupStrategy  Reset ()
  Returns an ICleanupStrategy object which is set to this regular pattern and redaction color. More...
 

Detailed Description

This class represents a regular expression based cleanup strategy

Constructor & Destructor Documentation

◆ RegexBasedCleanupStrategy() [1/2]

iText.PdfCleanup.Autosweep.RegexBasedCleanupStrategy.RegexBasedCleanupStrategy ( String  regex )
inline

Creates an object of regular expression based cleanup strategy.

Parameters
regex regular expression on which cleanup strategy will be based

◆ RegexBasedCleanupStrategy() [2/2]

iText.PdfCleanup.Autosweep.RegexBasedCleanupStrategy.RegexBasedCleanupStrategy ( Regex  pattern )
inline

Creates an object of regular expression based cleanup strategy.

Parameters
pattern

System.Text.RegularExpressions.Regex pattern on which cleanup strategy will be based

Member Function Documentation

◆ GetRedactionColor()

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

Get the color in which redaction is to take place

Implements iText.PdfCleanup.Autosweep.ICleanupStrategy.

◆ Reset()

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

Returns an ICleanupStrategy object which is set to this regular pattern and redaction color.

Returns
a reset cleanup strategy

Implements iText.PdfCleanup.Autosweep.ICleanupStrategy.

◆ SetRedactionColor()

virtual iText.PdfCleanup.Autosweep.RegexBasedCleanupStrategy iText.PdfCleanup.Autosweep.RegexBasedCleanupStrategy.SetRedactionColor ( Color  color )
inlinevirtual

Sets the color in which redaction is to take place.

Parameters
color the color in which redaction is to take place
Returns
this strategy