pdfSweep 2.0.5 API
iText.PdfCleanup.Autosweep.ICleanupStrategy Interface Reference

This class represents a generic cleanup strategy to be used with PdfAutoSweep ICleanupStrategy must implement Cloneable to ensure a strategy can be reset after having handled a page. More...

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

Public Member Functions

Color  GetRedactionColor (IPdfTextLocation location)
  Get the color in which redaction is to take place More...
 
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 generic cleanup strategy to be used with PdfAutoSweep ICleanupStrategy must implement Cloneable to ensure a strategy can be reset after having handled a page.

Member Function Documentation

◆ GetRedactionColor()

Color iText.PdfCleanup.Autosweep.ICleanupStrategy.GetRedactionColor ( IPdfTextLocation  location )

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

Implemented in iText.PdfCleanup.Autosweep.CompositeCleanupStrategy, and iText.PdfCleanup.Autosweep.RegexBasedCleanupStrategy.

◆ Reset()

ICleanupStrategy iText.PdfCleanup.Autosweep.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.

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

Implemented in iText.PdfCleanup.Autosweep.CompositeCleanupStrategy, and iText.PdfCleanup.Autosweep.RegexBasedCleanupStrategy.