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)
ICleanupStrategy
getRedactionColor in interface ICleanupStrategy
location - where to get the redaction color from
Color
public RegexBasedCleanupStrategy setRedactionColor(com.itextpdf.kernel.colors.Color color)
public ICleanupStrategy reset()
ICleanupStrategy
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.
reset in interface ICleanupStrategy
Copyright © 1998–2020 iText Group NV. All rights reserved.