Interface ICleanupStrategy

All Superinterfaces:
com.itextpdf.kernel.pdf.canvas.parser.listener.IEventListener, com.itextpdf.kernel.pdf.canvas.parser.listener.ILocationExtractionStrategy
All Known Implementing Classes:
CompositeCleanupStrategy, RegexBasedCleanupStrategy

public interface ICleanupStrategy extends com.itextpdf.kernel.pdf.canvas.parser.listener.ILocationExtractionStrategy
This class represents a generic cleanup strategy to be used with PdfCleaner or PdfAutoSweepTools ICleanupStrategy must implement Cloneable to ensure a strategy can be reset after having handled a page.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.itextpdf.kernel.colors.Color
    getRedactionColor(com.itextpdf.kernel.pdf.canvas.parser.listener.IPdfTextLocation location)
    Get the color in which redaction is to take place
    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.

    Methods inherited from interface com.itextpdf.kernel.pdf.canvas.parser.listener.IEventListener

    eventOccurred, getSupportedEvents

    Methods inherited from interface com.itextpdf.kernel.pdf.canvas.parser.listener.ILocationExtractionStrategy

    getResultantLocations
  • Method Details

    • getRedactionColor

      com.itextpdf.kernel.colors.Color getRedactionColor (com.itextpdf.kernel.pdf.canvas.parser.listener.IPdfTextLocation location)
      Get the color in which redaction is to take place
      Parameters:
      location - where to get the redaction color from
      Returns:
      a Color
    • reset

      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. Hence the reset method.
      Returns:
      a clone of this Object