public class PdfCleanUpTool extends Object
Modifier and Type | Field and Description |
---|---|
static double |
arcTolerance
Used as the criterion of a good approximation of rounded line joins and line caps.
|
static double |
floatMultiplier
When a document with line arts is being cleaned up, there are lot of calculations with floating point numbers.
|
Constructor and Description |
---|
PdfCleanUpTool(com.itextpdf.kernel.pdf.PdfDocument pdfDocument)
Creates a PdfCleanUpTool object.
|
PdfCleanUpTool(com.itextpdf.kernel.pdf.PdfDocument pdfDocument, boolean cleanRedactAnnotations)
Creates a PdfCleanUpTool object.
|
PdfCleanUpTool(com.itextpdf.kernel.pdf.PdfDocument pdfDocument, List<PdfCleanUpLocation> cleanUpLocations)
Creates a PdfCleanUpTool object based on the given List of PdfCleanUpLocation s representing regions to be erased from the document.
|
Modifier and Type | Method and Description |
---|---|
PdfCleanUpTool |
addCleanupLocation(PdfCleanUpLocation cleanUpLocation) |
void |
cleanUp()
Cleans the document by erasing all the areas which are either provided or extracted from redaction annotations.
|
public static double floatMultiplier
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
- APdfDocument
object representing the document to which redaction applies.
public PdfCleanUpTool(com.itextpdf.kernel.pdf.PdfDocument pdfDocument, boolean cleanRedactAnnotations)
PdfCleanUpTool
object. If 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 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
- APdfDocument
object representing the document to which redaction applies.
cleanRedactAnnotations
- if true - regions to be erased are extracted from the redact annotations contained inside the given document.
public PdfCleanUpTool(com.itextpdf.kernel.pdf.PdfDocument pdfDocument, List<PdfCleanUpLocation> cleanUpLocations)
PdfCleanUpTool
object based on the given List
of PdfCleanUpLocation
s representing regions to be erased from the document.
cleanUpLocations
- list of locations to be cleaned up PdfCleanUpLocation
pdfDocument
- APdfDocument
object representing the document to which redaction applies.
public PdfCleanUpTool addCleanupLocation(PdfCleanUpLocation cleanUpLocation)
public void cleanUp() throws IOException
IOException
Copyright © 1998–2019 iText Group NV. All rights reserved.