public class CompositeCleanupStrategy extends Object implements ICleanupStrategy
ICleanupStrategy
It allows users to have multiple ICleanupStrategy implementations and bundle them as one.| Constructor and Description |
|---|
CompositeCleanupStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ICleanupStrategy ies) |
void |
eventOccurred(com.itextpdf.kernel.pdf.canvas.parser.data.IEventData data,
com.itextpdf.kernel.pdf.canvas.parser.EventType type) |
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
|
Collection<com.itextpdf.kernel.pdf.canvas.parser.listener.IPdfTextLocation> |
getResultantLocations() |
Set<com.itextpdf.kernel.pdf.canvas.parser.EventType> |
getSupportedEvents() |
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. |
public void add(ICleanupStrategy ies)
public Collection<com.itextpdf.kernel.pdf.canvas.parser.listener.IPdfTextLocation> getResultantLocations()
getResultantLocations in interface com.itextpdf.kernel.pdf.canvas.parser.listener.ILocationExtractionStrategypublic 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 void eventOccurred(com.itextpdf.kernel.pdf.canvas.parser.data.IEventData data,
com.itextpdf.kernel.pdf.canvas.parser.EventType type)
eventOccurred in interface com.itextpdf.kernel.pdf.canvas.parser.listener.IEventListenerpublic Set<com.itextpdf.kernel.pdf.canvas.parser.EventType> getSupportedEvents()
getSupportedEvents in interface com.itextpdf.kernel.pdf.canvas.parser.listener.IEventListenerpublic 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.