Class CleanUpHelperUtil

java.lang.Object
com.itextpdf.pdfcleanup.util.CleanUpHelperUtil

public final class CleanUpHelperUtil extends Object
Utility class providing clean up helping methods.
  • 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 passed Rectangle, specifying the area to clean.
      Parameters:
      rect - the Rectangle 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
    • calculatePolygonArea

      public static double calculatePolygonArea (com.itextpdf.kernel.geom.Point[] vertices)