Package com.itextpdf.pdfcleanup.util
Class CleanUpHelperUtil
java.lang.Object
com.itextpdf.pdfcleanup.util.CleanUpHelperUtil
Utility class providing clean up helping methods.
-
Method Summary
Modifier and TypeMethodDescriptionstatic int[]
getImageRectToClean
(com.itextpdf.kernel.geom.Rectangle rect, int imgWidth, int imgHeight) Calculates the coordinates of the image rectangle to clean by the passedRectangle
, specifying the area to clean.
-
Method Details
-
getImageRectToClean
public static int[] getImageRectToClean(com.itextpdf.kernel.geom.Rectangle rect, int imgWidth, int imgHeight) Calculates the coordinates of the image rectangle to clean by the passedRectangle
, specifying the area to clean.- Parameters:
-
rect
- theRectangle
specifying the area to clean. -
imgWidth
- width of the image to clean -
imgHeight
- height of the image to clean - Returns:
- an array of the resultant rectangle coordinates
-