Package com.priint.pubserver.util
Class PdfComparer
java.lang.Object
com.priint.pubserver.util.PdfComparer
Utility class with static methods to compare pdf files
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanMethod to compare two pdf files with default resolution in dpi = 300static booleanMethod to compare two pdf filesstatic booleanMethod to compare two pdf filesstatic booleanMethod to compare two pdf files with default resolution in dpi = 300
-
Method Details
-
compare
public static boolean compare(String pdf1, String pdf2, float resolutionInDpi, int x, int y, int width, int height) throws IOException Method to compare two pdf files- Parameters:
pdf1- string pdf file pathpdf2- string pdf file pathresolutionInDpi- float between 96 and 1000x- int startXy- int startYwidth- width (value 1 meaning use max possible size)height- height (value 1 meaning use max possible size)- Returns:
- return true if pdf files are equal
- Throws:
IOException
-
compare
Method to compare two pdf files with default resolution in dpi = 300- Parameters:
pdf1- the first pdf file pathpdf2- the second pdf file path- Returns:
- return true if pdf files are equal
- Throws:
IOException
-
compare
Method to compare two pdf files- Parameters:
pdf1- the first pdf file pathpdf2- the second pdf file pathresolutionInDpi- float between 96 and 1000- Returns:
- return true if pdf files are equal
- Throws:
IOException
-
compare
public static boolean compare(String pdf1, String pdf2, int x, int y, int width, int height) throws IOException Method to compare two pdf files with default resolution in dpi = 300- Parameters:
pdf1- the first pdf file pathpdf2- the second pdf file pathx- int startXy- int startYwidth- width (value 1 meaning use max possible size)height- height (value 1 meaning use max possible size)- Returns:
- return true if pdf files are equal
- Throws:
IOException
-