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.color.Color |
getRedactionColor(com.itextpdf.kernel.pdf.canvas.parser.listener.IPdfTextLocation location)
Get the color in which redaction is to take place
|
Collection |
getResultantLocations() |
Set |
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 CollectiongetResultantLocations()
getResultantLocations
in interface com.itextpdf.kernel.pdf.canvas.parser.listener.ILocationExtractionStrategy
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 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.IEventListener
public SetgetSupportedEvents()
getSupportedEvents
in interface com.itextpdf.kernel.pdf.canvas.parser.listener.IEventListener
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.