public class PdfAutoSweep extends Object
Constructor and Description |
---|
PdfAutoSweep(ICleanupStrategy strategy)
Construct a new instance of PdfAutoSweep with a given ICleanupStrategy
|
Modifier and Type | Method and Description |
---|---|
void |
cleanUp(com.itextpdf.kernel.pdf.PdfDocument pdfDocument)
Perform cleanup of areas of interest on a given PdfDocument
|
void |
cleanUp(com.itextpdf.kernel.pdf.PdfPage pdfPage)
Perform cleanup of areas of interest on a given PdfPage
|
List<PdfCleanUpLocation> |
getPdfCleanUpLocations(com.itextpdf.kernel.pdf.PdfDocument doc)
Get all PdfCleanUpLocation objects from a given PdfDocument
|
List<PdfCleanUpLocation> |
getPdfCleanUpLocations(com.itextpdf.kernel.pdf.PdfPage page)
Get all PdfCleanUpLocation objects from a given PdfPage
|
void |
highlight(com.itextpdf.kernel.pdf.PdfDocument pdfDocument)
Highlight areas of interest in a given PdfDocument
|
void |
highlight(com.itextpdf.kernel.pdf.PdfPage pdfPage)
Highlight areas of interest in a given PdfPage
|
void |
tentativeCleanUp(com.itextpdf.kernel.pdf.PdfDocument pdfDocument)
Perform tentative cleanup of areas of interest on a given PdfDocument This method will add all redaction annotations to the given document, allowing the end-user to choose which redactions to keep or delete.
|
void |
tentativeCleanUp(com.itextpdf.kernel.pdf.PdfPage pdfPage)
Perform tentative cleanup of areas of interest on a given PdfPage This method will add all redaction annotations to the given page, allowing the end-user to choose which redactions to keep or delete.
|
public PdfAutoSweep(ICleanupStrategy strategy)
strategy
- the redaction strategy to be used
public void highlight(com.itextpdf.kernel.pdf.PdfDocument pdfDocument)
PdfDocument
pdfDocument
- the PdfDocument
to be highlighted
public void highlight(com.itextpdf.kernel.pdf.PdfPage pdfPage)
PdfPage
pdfPage
- the PdfPage
to be highlighted
public void cleanUp(com.itextpdf.kernel.pdf.PdfDocument pdfDocument) throws IOException
PdfDocument
pdfDocument
- the PdfDocument
to be redacted
IOException
- an IOException
public void cleanUp(com.itextpdf.kernel.pdf.PdfPage pdfPage) throws IOException
PdfPage
pdfPage
- the PdfPage
to be redacted
IOException
- an IOException
public void tentativeCleanUp(com.itextpdf.kernel.pdf.PdfDocument pdfDocument)
PdfDocument
This method will add all redaction annotations to the given document, allowing the end-user to choose which redactions to keep or delete.
pdfDocument
- the document to clean up
public void tentativeCleanUp(com.itextpdf.kernel.pdf.PdfPage pdfPage)
PdfPage
This method will add all redaction annotations to the given page, allowing the end-user to choose which redactions to keep or delete.
pdfPage
- the page to clean up
public List<PdfCleanUpLocation> getPdfCleanUpLocations(com.itextpdf.kernel.pdf.PdfPage page)
PdfCleanUpLocation
objects from a given PdfPage
page
- the PdfPage
to be processed
PdfCleanUpLocation
objects
public List<PdfCleanUpLocation> getPdfCleanUpLocations(com.itextpdf.kernel.pdf.PdfDocument doc)
PdfCleanUpLocation
objects from a given PdfDocument
doc
- the PdfDocument
to be processed
PdfCleanUpLocation
objects
Copyright © 1998–2021 iText Group NV. All rights reserved.