public class PdfCleanUpTool extends Object
| Modifier and Type | Field and Description |
|---|---|
static double |
arcTolerance
Deprecated.
|
static double |
floatMultiplier
Deprecated.
|
| Constructor and Description |
|---|
PdfCleanUpTool(com.itextpdf.kernel.pdf.PdfDocument pdfDocument)
Creates a
PdfCleanUpTool object. |
PdfCleanUpTool(com.itextpdf.kernel.pdf.PdfDocument pdfDocument,
boolean cleanRedactAnnotations,
CleanUpProperties properties)
Creates a
PdfCleanUpTool object. |
PdfCleanUpTool(com.itextpdf.kernel.pdf.PdfDocument pdfDocument,
List<PdfCleanUpLocation> cleanUpLocations,
CleanUpProperties properties)
Creates a
PdfCleanUpTool object based on the given List
of PdfCleanUpLocations representing regions to be erased from the document. |
| Modifier and Type | Method and Description |
|---|---|
PdfCleanUpTool |
addCleanupLocation(PdfCleanUpLocation cleanUpLocation)
Adds a
PdfCleanUpLocation to be cleaned up. |
void |
cleanUp()
Cleans the document by erasing all the areas which are provided or extracted from redaction annotations.
|
@Deprecated public static double floatMultiplier
@Deprecated public static double arcTolerance
public PdfCleanUpTool(com.itextpdf.kernel.pdf.PdfDocument pdfDocument)
PdfCleanUpTool object. No regions for erasing are specified.
Use addCleanupLocation(PdfCleanUpLocation) method
to set regions to be erased from the document.pdfDocument - A PdfDocument object representing the document to which redaction applies.public PdfCleanUpTool(com.itextpdf.kernel.pdf.PdfDocument pdfDocument,
boolean cleanRedactAnnotations,
CleanUpProperties properties)
PdfCleanUpTool object. If cleanRedactAnnotations is true,
regions to be erased are extracted from the redact annotations contained inside the given document.
Those redact annotations will be removed from the resultant document. If cleanRedactAnnotations is false,
then no regions for erasing are specified. In that case use addCleanupLocation(PdfCleanUpLocation)
method to set regions to be erased from the document.pdfDocument - A PdfDocument object representing the document to which redaction applies.cleanRedactAnnotations - if true - regions to be erased are extracted from the redact annotations containedproperties - additional properties for clean-up process
inside the given document.public PdfCleanUpTool(com.itextpdf.kernel.pdf.PdfDocument pdfDocument,
List<PdfCleanUpLocation> cleanUpLocations,
CleanUpProperties properties)
PdfCleanUpTool object based on the given List
of PdfCleanUpLocations representing regions to be erased from the document.cleanUpLocations - list of locations to be cleaned up PdfCleanUpLocationpdfDocument - a PdfDocument object representing the document to which redaction applies.properties - additional properties for clean-up processpublic PdfCleanUpTool addCleanupLocation(PdfCleanUpLocation cleanUpLocation)
PdfCleanUpLocation to be cleaned up.cleanUpLocation - a PdfCleanUpLocation to be cleaned upPdfCleanUpToolpublic void cleanUp()
throws IOException
IOException - IOExceptionCopyright © 1998–2023 iText Group NV. All rights reserved.