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.color.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.color.Color color) |
eventOccurred, getResultantLocations, getSupportedEvents, toCRI, toRectangles
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public RegexBasedCleanupStrategy(String regex)
public RegexBasedCleanupStrategy(Pattern pattern)
public com.itextpdf.kernel.color.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.color.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–2019 iText Group NV. All rights reserved.