public class PdfCleanUpProcessor 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 boolean |
fillCleanedArea |
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 |
---|
PdfCleanUpProcessor(List<PdfCleanUpLocation> pdfCleanUpLocations,
PdfStamper pdfStamper)
Creates a
PdfCleanUpProcessor object based on the
given List of PdfCleanUpLocation s
representing regions to be erased from the document. |
PdfCleanUpProcessor(PdfStamper pdfStamper)
Creates a
PdfCleanUpProcessor object. |
Modifier and Type | Method and Description |
---|---|
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 boolean fillCleanedArea
public static double arcTolerance
public PdfCleanUpProcessor(List<PdfCleanUpLocation> pdfCleanUpLocations, PdfStamper pdfStamper)
PdfCleanUpProcessor
object based on the
given List
of PdfCleanUpLocation
s
representing regions to be erased from the document.pdfCleanUpLocations
- list of locations to be cleaned up PdfCleanUpLocation
pdfStamper
- APdfStamper
object representing the document which redaction
applies to.public PdfCleanUpProcessor(PdfStamper pdfStamper)
PdfCleanUpProcessor
object. Regions to be erased from
the document are extracted from the redact annotations contained inside the given document.pdfStamper
- APdfStamper
object representing the document which redaction
applies to.public void cleanUp() throws IOException, DocumentException
IOException
DocumentException
Copyright © 2017. All rights reserved.