public class RegexBasedCleanupStrategy extends com.itextpdf.kernel.pdf.canvas.parser.listener.RegexBasedLocationExtractionStrategy implements ICleanupStrategy
| Constructor and Description |
|---|
RegexBasedCleanupStrategy(Pattern pattern) |
RegexBasedCleanupStrategy(String regex) |
| 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. |
RegexBasedCleanupStrategy |
setRedactionColor(com.itextpdf.kernel.colors.Color color) |
eventOccurred, getResultantLocations, getSupportedEvents, toCRI, toRectanglesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic RegexBasedCleanupStrategy(String regex)
public RegexBasedCleanupStrategy(Pattern pattern)
public com.itextpdf.kernel.colors.Color getRedactionColor(com.itextpdf.kernel.pdf.canvas.parser.listener.IPdfTextLocation location)
ICleanupStrategygetRedactionColor in interface ICleanupStrategylocation - where to get the redaction color fromColorpublic RegexBasedCleanupStrategy setRedactionColor(com.itextpdf.kernel.colors.Color color)
public ICleanupStrategy reset()
ICleanupStrategyPdfAutoSweep 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.reset in interface ICleanupStrategyCopyright © 1998–2021 iText Group NV. All rights reserved.