Package com.itextpdf.pdfcleanup
Class PdfCleanUpLocation
java.lang.Object
com.itextpdf.pdfcleanup.PdfCleanUpLocation
Defines the region to be erased in a PDF document.
-
Constructor Summary
ConstructorsConstructorDescriptionPdfCleanUpLocation(int page, com.itextpdf.kernel.geom.Rectangle region) Constructs aPdfCleanUpLocationobject.PdfCleanUpLocation(int page, com.itextpdf.kernel.geom.Rectangle region, com.itextpdf.kernel.colors.Color cleanUpColor) Constructs aPdfCleanUpLocationobject. -
Method Summary
Modifier and TypeMethodDescriptioncom.itextpdf.kernel.colors.ColorReturns a color used to fill the area after erasing it.intgetPage()com.itextpdf.kernel.geom.Rectangle
-
Constructor Details
-
PdfCleanUpLocation
public PdfCleanUpLocation(int page, com.itextpdf.kernel.geom.Rectangle region) Constructs aPdfCleanUpLocationobject.- Parameters:
-
page- specifies the number of the page which the region belongs to. -
region- represents the boundaries of the area to be erased.
-
PdfCleanUpLocation
public PdfCleanUpLocation(int page, com.itextpdf.kernel.geom.Rectangle region, com.itextpdf.kernel.colors.Color cleanUpColor) Constructs aPdfCleanUpLocationobject.- Parameters:
-
page- specifies the number of the page which the region belongs to. -
region- represents the boundaries of the area to be erased. -
cleanUpColor- a color used to fill the area after erasing it. Ifnullthe erased area left uncolored.
-
-
Method Details
-
getPage
public int getPage()- Returns:
- the number of the page which the region belongs to.
-
getRegion
public com.itextpdf.kernel.geom.Rectangle getRegion()- Returns:
-
A
Rectanglerepresenting the boundaries of the area to be erased.
-
getCleanUpColor
public com.itextpdf.kernel.colors.Color getCleanUpColor()Returns a color used to fill the area after erasing it. Ifnullthe erased area left uncolored.- Returns:
- a color used to fill the area after erasing it.
-