Package com.itextpdf.pdfcleanup.util
Class CleanUpCsCompareUtil
java.lang.Object
com.itextpdf.pdfcleanup.util.CleanUpCsCompareUtil
Utility class providing methods to check images compatibility.
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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
-