Package com.priint.pubserver.util
Class PdfComparer
- java.lang.Object
-
- com.priint.pubserver.util.PdfComparer
-
public class PdfComparer extends java.lang.ObjectUtility class with static methods to compare pdf files
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancompare(java.lang.String pdf1, java.lang.String pdf2)Method to compare two pdf files with default resolution in dpi = 300static booleancompare(java.lang.String pdf1, java.lang.String pdf2, float resolutionInDpi)Method to compare two pdf filesstatic booleancompare(java.lang.String pdf1, java.lang.String pdf2, float resolutionInDpi, int x, int y, int width, int height)Method to compare two pdf filesstatic booleancompare(java.lang.String pdf1, java.lang.String pdf2, int x, int y, int width, int height)Method to compare two pdf files with default resolution in dpi = 300
-
-
-
Method Detail
-
compare
public static boolean compare(java.lang.String pdf1, java.lang.String pdf2, float resolutionInDpi, int x, int y, int width, int height) throws java.io.IOExceptionMethod 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:
java.io.IOException
-
compare
public static boolean compare(java.lang.String pdf1, java.lang.String pdf2) throws java.io.IOExceptionMethod 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:
java.io.IOException
-
compare
public static boolean compare(java.lang.String pdf1, java.lang.String pdf2, float resolutionInDpi) throws java.io.IOExceptionMethod 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:
java.io.IOException
-
compare
public static boolean compare(java.lang.String pdf1, java.lang.String pdf2, int x, int y, int width, int height) throws java.io.IOExceptionMethod 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:
java.io.IOException
-
-