Class CleanUpCsCompareUtil

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

public final class CleanUpCsCompareUtil extends Object
Utility class providing methods to check images compatibility.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isOriginalCsCompatible(com.itextpdf.kernel.pdf.xobject.PdfImageXObject originalImage, com.itextpdf.kernel.pdf.xobject.PdfImageXObject clearedImage)
    Check whether the image info of the passed original image and the image info of the cleared image are the same.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • isOriginalCsCompatible

      public static boolean isOriginalCsCompatible (com.itextpdf.kernel.pdf.xobject.PdfImageXObject originalImage, com.itextpdf.kernel.pdf.xobject.PdfImageXObject clearedImage)
      Check whether the image info of the passed original image and the image info of the cleared image are the same.
      Parameters:
      originalImage - PdfImageXObject of the original image
      clearedImage - PdfImageXObject of the cleared image
      Returns:
      true if the image infos are the same