public interface ICleanupStrategy
extends com.itextpdf.kernel.pdf.canvas.parser.listener.ILocationExtractionStrategy
PdfAutoSweep
ICleanupStrategy must implement Cloneable to ensure a strategy can be reset after having handled a page.
Modifier and Type | Method and 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
|
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.
|
com.itextpdf.kernel.colors.Color getRedactionColor(com.itextpdf.kernel.pdf.canvas.parser.listener.IPdfTextLocation location)
location
- where to get the redaction color from
Color
ICleanupStrategy reset()
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.
Copyright © 1998–2021 iText Group NV. All rights reserved.